Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 16th, 2007, 05:21 PM
Authorized User
 
Join Date: Aug 2006
Location: Hoffman Estates, IL, USA.
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default Combining two Queries

Hello:
  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,
Arholly

Reply With Quote
  #2 (permalink)  
Old January 16th, 2007, 06:40 PM
Registered User
 
Join Date: Oct 2006
Location: Leigh, Lancashire, United Kingdom.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Arholly

Use a union query. it would go something like this

write your select query here for example
SELECT [NAME],ADDRESS FROM TABLE

UNION SELECT [NAME],ADDRESS FROM [OTHER TABLE]

and run the query. this will combine both your tables
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:34 PM.


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