How to append information to all data in a field?

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

Guest

I have a field "SITE" that I need to append "2201" in the front of what is
already in the field. How can this be done using a query?
 
If you want to do it to the whole table:
UPDATE myTable
SET SITE = "2201" & SITE

....but if you only want to do it to a single record, or a specific set of
records:
UPDATE myTable
SET SITE = "2201" & SITE
WHERE x = y

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 
Great works perfect

Graham R Seach said:
If you want to do it to the whole table:
UPDATE myTable
SET SITE = "2201" & SITE

....but if you only want to do it to a single record, or a specific set of
records:
UPDATE myTable
SET SITE = "2201" & SITE
WHERE x = y

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

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