Deleting Parts of a Table Field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table with fields listing cities and states for different companies.
The city and state are in separate fields.

Whoever created the list, put quotation marks such as this around the fields:

City State

"Memphis Tennessee"
"Baton Rouge Louisiana"
Orange California

I'm going to mail merge the fields, but don't want the quotation marks in
them. The quotation marks are not on all fields as shown above, but I would
like to create some update query or formula that took the quotes out if they
were in the field to have it as the Orange California example looks.

Any suggestions??
 
You can use the replace function to remove all quotation marks from the fields

UPDATE TableName SET TableName.City = Replace([City],"""","")
 
Thank you

Ofer said:
You can use the replace function to remove all quotation marks from the fields

UPDATE TableName SET TableName.City = Replace([City],"""","")
--
If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benifit from it.

Good luck



GOL said:
I have a table with fields listing cities and states for different companies.
The city and state are in separate fields.

Whoever created the list, put quotation marks such as this around the fields:

City State

"Memphis Tennessee"
"Baton Rouge Louisiana"
Orange California

I'm going to mail merge the fields, but don't want the quotation marks in
them. The quotation marks are not on all fields as shown above, but I would
like to create some update query or formula that took the quotes out if they
were in the field to have it as the Orange California example looks.

Any suggestions??
 

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

Back
Top