Update Query

  • Thread starter Thread starter R Young via AccessMonster.com
  • Start date Start date
R

R Young via AccessMonster.com

I have one column "EnterpriseID" which contain shortnames of 70,000
employees. I need to add "@xyz.com" to each shortname.

I do have another column with the actual email address, BUT not all the
records have an email address. 56,000 have "NA" as the email address, thus
the reasoning for wanting to add the "@xyz.com".

I just discovered the update query but it is just not updating my records
at all. Any help would be appreciated!
 
Make this an additonal field:

SELECT tablename.EnterpriseID, [EnterpriseID]+"xyz.com" AS [Both]
FROM tablename;

or you could run the update query but make the criteria "NA". The update to
should have [tablename]![EnterpriseID+"xyz.com"]

Hope this helps.
Splendalisa
 
I have one column "EnterpriseID" which contain shortnames of 70,000
employees. I need to add "@xyz.com" to each shortname.

I do have another column with the actual email address, BUT not all the
records have an email address. 56,000 have "NA" as the email address, thus
the reasoning for wanting to add the "@xyz.com".


Something like this (in the SQL window, edited to use your table and
fieldnames) should work, and will preserve existing email addresses
(remove the WHERE clause if you want to stomp on them regardless):

UPDATE yourtable
SET (e-mail address removed)
 

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

Similar Threads

Update Query 3
Need help aggregating strings 6
Separating data from cells 18
When to use .Edit & .Update 11
Sum using totals 2
Expression in Forms 3
IF(AND condition 1
Help, please, adding on to items in a column... 5

Back
Top