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
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,047
Office Version
  1. 365
Platform
  1. Windows
What is qryUpdateContact and where exactly are you using it?
 

ckib

Board Regular
Joined
Sep 14, 2005
Messages
219
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!
 

Watch MrExcel Video

Forum statistics

Threads
1,118,081
Messages
5,570,088
Members
412,310
Latest member
mark884
Top