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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,344
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!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,993
Messages
5,834,772
Members
430,320
Latest member
Napzz

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
Top