Remove text from field

C

cvegas

I would like to run an update query and remove everthing to the right of the
comma in a particular field. (Actually I want to remove the comma and
everthing to the right of the comma)

IE: San Francisco, CA
Los Angeles, CA

Result San Francisco
Los Angeles

Help with syntax would be greatly appreciated.
 
F

fredg

I would like to run an update query and remove everthing to the right of the
comma in a particular field. (Actually I want to remove the comma and
everthing to the right of the comma)

IE: San Francisco, CA
Los Angeles, CA

Result San Francisco
Los Angeles

Help with syntax would be greatly appreciated.

Back up your table first.

Update YourTable Set YourTable.CombinedField =
Left([CombinedField],InStr([CombinedField],",")-1);
 

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