Trim

C

CVegas

Please advise syntax to trim all but the first 3 letters that are in a
field.

Field Name:[City]
Field Value: BOS Boston, MA
I want to retain the value BOS and delete Boston, MA

TIA
 
F

fredg

Please advise syntax to trim all but the first 3 letters that are in a
field.

Field Name:[City]
Field Value: BOS Boston, MA
I want to retain the value BOS and delete Boston, MA

TIA
=Left([City],3)
 
N

Naresh Nichani MVP

You could type a query like this in SQL window : -

Update [YourTableName] Set [City] = Left([City],3)

Save query and execute and it should do for all records.

Regards,

Naresh Nichani
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top