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 January 16th, 2007, 05:21 PM
Authorized User
Join Date: Aug 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default Combining two Queries

  Here is my problem. I have two different queries, where both, by intention, have the same field names. I need to take those two different queries and merge the information in to one query.

  One query takes information about books and courses. The other query takes information about software and courses. Now, they need to be merged into one massive query and I'm not sure the best way to do it. The reason I have them have fields with the same name is because the software/course table doesn't have all the information that the books/courses does, so I have the software/course query generating empty fields in the appropriate places.

  Any help is appreciated.

Best Regards,

Old January 16th, 2007, 06:40 PM
Registered User
Join Date: Oct 2006
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Arholly

Use a union query. it would go something like this

write your select query here for example


and run the query. this will combine both your tables

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining PHP and C++ Waffles C++ Programming 0 August 3rd, 2007 01:20 PM
Combining Queries or results from 2 queries Ford SQL Server 2000 24 November 7th, 2005 08:54 PM
Combining Parameter Queries Taarnac SQL Language 0 May 4th, 2005 11:13 AM
Combining tables spraveens Access 2 December 29th, 2003 11:08 AM

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