473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Merge 2 tables with similar data structures ?

I have 2 Customer Tables from different sources that i would like to
merge into one master table. They have similar data but different
field names and field orders. Is it possible to extract the data from
one of the tables via some sort of mapping ? Outlook provides a nice
utility to map data into a Contacts folder but I can't find a similar
utility within Access. I have a programming background but not in VB
but I don't mind having a go if somebody can point me in the right
direction.

Thanks in advance,

Steve Jebson
Nov 12 '05 #1
2 1995
"Steve Jebson" <st**********@btinternet.com> wrote in message
news:e4**************************@posting.google.c om...
I have 2 Customer Tables from different sources that i would like to
merge into one master table. They have similar data but different
field names and field orders. Is it possible to extract the data from
one of the tables via some sort of mapping ? Outlook provides a nice
utility to map data into a Contacts folder but I can't find a similar
utility within Access. I have a programming background but not in VB
but I don't mind having a go if somebody can point me in the right
direction.

Thanks in advance,

Steve Jebson

You could approach this in a number of ways both with and without using
code, and you could look at using union queries, but this is how I might
handle it, for a quick conversion.

tblOne: CusName, CusCode, CusTel, CusFax
tblTwo: Customer, Phone, Fax, Code

Choose tblOne to be the master table.
Create a query based on tblTwo = "SELECT Customer, Code, Phone, Fax FROM
tblTwo"
Run query, select all records and copy
Open tblOne, highlight the new record (*) at the bottom of the table and
select Edit>PasteAppend

Note you can make up columns if there are missing ones, eg.

SELECT Field1, Field2, "Missing" AS MyMissingField FROM tblMyTable

The important thing is to have the same number of fields.

Fletcher
Nov 12 '05 #2
It is easy in Access.
You go to query create new.
Add the table you wan't to add from.
Add all the fields in the top grid line
On the meny got to Query. Select Append query. You get a box up to enter
the table to append to.
The you map in the grid lines, the fields from the append from table, with
the fields in the append to table.
You can even create calculations or format changes on the fields in the
append from table.

A tip: Before you do it: make a copy of the original table, before you run
anything.

Brgds
Rolfern

"Steve Jebson" <st**********@btinternet.com> wrote in message
news:e4**************************@posting.google.c om...
I have 2 Customer Tables from different sources that i would like to
merge into one master table. They have similar data but different
field names and field orders. Is it possible to extract the data from
one of the tables via some sort of mapping ? Outlook provides a nice
utility to map data into a Contacts folder but I can't find a similar
utility within Access. I have a programming background but not in VB
but I don't mind having a go if somebody can point me in the right
direction.

Thanks in advance,

Steve Jebson

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: campwes | last post by:
Hey, all. I'm trying to develop a C# app that creates Word 2003 mail merge documents with an Oracle 9i database as the datasource. I used the following as an example of how I can start out: ...
1
by: tedd_n_alex | last post by:
I have database on SQL Server 2000 set up with a merge publication. This publication is configured with a number of dynamic filters to reduce the amount of data sent to each client. Each client has...
8
by: Darryl Kerkeslager | last post by:
I hope that although this is 25% Access and 75% Word, that someone will know ... The whole problem here arises because 1) Microsoft acknowledges an 'issue' wherein TextInput type FormFields are...
0
by: Darragh | last post by:
I'm encountering some serious problems trying to set Access 2000 querys (parameters and views) as data sources for my mail merge documents (Word 2003). After spending hours scouring the web for...
3
by: cdelarte | last post by:
I would like to be able to mail merge records from multiple mysql tables using a simple template, preferably via a command line script. MSWord mail merge via ODBC will not work for me as it only...
3
by: John Cosmas | last post by:
I have a DATATABLE which I have populated in my application, and I need it written out to a particular table I specify in my ACCESS database. My code works to the point of the MERGE and UPDATE,...
1
by: ammie | last post by:
I have two databases with identical tables structures. I need to merge the data in both databases without implementing merge replication. Can someone tell me what script to run that will compare...
0
by: kunjan reshamiya | last post by:
Hi, I want to merge two databases in SQL Server 2000. Can you help me out regarding the same. For e.g. I have Database A and Database B, both containing the same tables and same number of...
0
by: Dave.Womer | last post by:
All, I'm having an issue merging datasets. It seems everytime I peform a merge of new data on existing data all of the rows of the existing data are modified even if the new data does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.