• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Access update query question

Ktulu

Diamond Member
If i have records in a table with the following values:

table_name = Asset

asset# location
-------- -----------
10000 BC100
10001 BC101
10002 BC102
10003 BC102A
10004 AC101
10005 DCD101

is there any way to write an update query to change the "BC" in the location field to "BCD" on all locations that start with the "BC"

Any help would be appreciated.
 
Figured it out myself.

update Asset set location = "BCD"& right (location, LEN(location)-2)
where location like "BC*"
 
Back
Top