Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 29th, 2003, 10:51 AM
Authorized User
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default Combining tables


     I have 2 tables, Now I need to combine these to tables as one table .Is there any method to do so?. eg: I have 2 tables table A and table B.now I want to create a table C which has all the fields of Table A and B including records.

pls help.

Old December 29th, 2003, 11:01 AM
Friend of Wrox
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc

Using access queries.

Create a make table query using the results from your combined tables.

Old December 29th, 2003, 11:08 AM
Authorized User
Join Date: Jun 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts

You can use a Union query to do this:

SELECT tblA.Field1, tblA.Field2
WHERE tblA.Field1 <Some Criteria>
UNION ALL SELECT tblB.Field1, tblB.Field2
WHERE tblB.Field1 <Some Criteria>;

In a Union query the total fields must be equal from each table (as above two fields requested) there are some variations in data types that can be combined. For more detailed info see "Combine data in fields from two or more tables using a union query" in Access help.

Kenny Alligood

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining PHP and C++ Waffles C++ Programming 0 August 3rd, 2007 01:20 PM
Combining two Queries arholly Access 1 January 16th, 2007 06:40 PM
Question of Combining Multipe Related Tables mariushung VB Databases Basics 0 January 12th, 2005 03:06 PM
Combining records OCM Access 2 November 19th, 2003 04:51 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.