A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Merge data from one table into another table



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 10:16 AM
xpnovice
external usenet poster
 
Posts: n/a
Default Merge data from one table into another table

Hi,

I have a table that contains customer details, including a unique CustId
field. There is also another table with only two fields, CustId and
CustRef. The CustRef is also a unique field required by a different
department.

I want to combine this data all into the main customer table and ditch the
two field table.

I have added a new field to the main table to accommodate the CustRef data
but would like to merge this data automatically to save entering a few
thousand records manually.

Any ideas please.

Example:

Main Table:

CustId CustRef Forename Surname
01397 Martin Jones

CustRef currently empty as I have not transferred the data.

Additional Table:

CustId CustRef
01397 AR9723

How do I get the main table reading:

CustId CustRef Forename Surname
01397 AR9723 Martin Jones

Thanks
John



  #2  
Old June 8th, 2004, 01:29 PM
Joseph Meehan
external usenet poster
 
Posts: n/a
Default Merge data from one table into another table

xpnovice wrote:
Hi,

I have a table that contains customer details, including a unique
CustId field. There is also another table with only two fields,
CustId and CustRef. The CustRef is also a unique field required by a
different department.

I want to combine this data all into the main customer table and
ditch the two field table.

I have added a new field to the main table to accommodate the CustRef
data but would like to merge this data automatically to save entering
a few thousand records manually.

Any ideas please.

Example:

Main Table:

CustId CustRef Forename Surname
01397 Martin Jones

CustRef currently empty as I have not transferred the data.

Additional Table:

CustId CustRef
01397 AR9723

How do I get the main table reading:

CustId CustRef Forename Surname
01397 AR9723 Martin Jones

Thanks
John



This is a job for an update query.

--
Joseph E. Meehan

26 + 6 = 1 It's Irish Math



  #3  
Old June 8th, 2004, 01:58 PM
xpnovice
external usenet poster
 
Posts: n/a
Default Merge data from one table into another table

Yes,

Ive just worked it out, I needed to ref the table/field names in the updata
to:

Thanks
"Joseph Meehan" wrote in message
...
xpnovice wrote:
Hi,

I have a table that contains customer details, including a unique
CustId field. There is also another table with only two fields,
CustId and CustRef. The CustRef is also a unique field required by a
different department.

I want to combine this data all into the main customer table and
ditch the two field table.

I have added a new field to the main table to accommodate the CustRef
data but would like to merge this data automatically to save entering
a few thousand records manually.

Any ideas please.

Example:

Main Table:

CustId CustRef Forename Surname
01397 Martin Jones

CustRef currently empty as I have not transferred the data.

Additional Table:

CustId CustRef
01397 AR9723

How do I get the main table reading:

CustId CustRef Forename Surname
01397 AR9723 Martin Jones

Thanks
John



This is a job for an update query.

--
Joseph E. Meehan

26 + 6 = 1 It's Irish Math





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.