how to merge data from 2 tables

ckib

Board Regular
Joined
Sep 14, 2005
Messages
219
Hi,

I'm trying to merge data from 2 tables. I have a contact table and another table with URLs and email addresses. The URL/email table contains the contactID (FK to contact table). I need to get the URL and email addresses into the contact table. I tried writing an update query, linking the 2 tables, and setting the 'update to' values in the contact table to:

[tblURLemail.URL], [tblURLemail.email1], etc.

when I run the query, I get the error:

'qryUpdateContact is not a valid name. Make sure it does not include invalid characters or punctuation and that it is not too long.

I've never seen this error message. Anyone have any idea if what I'm trying to do is valid ... and if so, what I'm doing wrong?

Thanks,
Cynthia
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
What is qryUpdateContact and where exactly are you using it?
 
Upvote 0
Hi Norie,

It's the name of the query I'm trying to run. I notice that in the error message there is a single quote before the query name ... don't know if that's significant.

Is it possible to do what I'm trying to do with a query? If not, I'll start writing code ...

Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,773
Members
448,991
Latest member
Hanakoro

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top