Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / January 2005

Tip: Looking for answers? Try searching our database.

merging tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Merging Tables - 03 Jan 2005 17:49 GMT
I have two tables in an access database that I need to merge.  Both tables
contain the same fields, such as first name, last name, etc.  I want to merge
these two tables into one, containing all of the entries, not just the ones
that are equal.  Can someone help?
Brian - 03 Jan 2005 18:11 GMT
> I have two tables in an access database that I need to merge.  Both tables
> contain the same fields, such as first name, last name, etc.  I want to merge
> these two tables into one, containing all of the entries, not just the ones
> that are equal.  Can someone help?

Sound like you want an append query that takes all of the records from one
table and appends them to the other.

You can easily do this in the query design view.  Create a query that
selects all the fields from one of the tables.  On the "Query" menu, choose
"Append Query", and specify that you want to append the data to the other
table.  Run the query.

This will NOT work if there are duplicate primary keys across the two
tables.  If that is the case, what you need to do will depend on how,
logically, you want to resolve the duplicates.
PC Datasheet - 03 Jan 2005 18:42 GMT
Use an append query and append table2 into table1.

--
                                       PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
                             resource@pcdatasheet.com
                                www.pcdatasheet.com

> I have two tables in an access database that I need to merge.  Both tables
> contain the same fields, such as first name, last name, etc.  I want to merge
> these two tables into one, containing all of the entries, not just the ones
> that are equal.  Can someone help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.