Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining results from 2 queries. 1

Status
Not open for further replies.

maxxev

Technical User
Joined
Jul 17, 2008
Messages
139
Location
NL
Hi, as a Novice in access could someone help me to combine 2 queries.

Basically I have 2 queries:

"QAllergens in spec (components)"
"QAllergens in spec (subcomponents)"

They both contain identicle results in 2 fields:
"Ing_specID"
"Allergen Type"

I would like a third query that can simply list both results in the one list, is this possible?, and if so how do I do it.

Thank you.
 
Do you mean:

Code:
SELECT Ing_specID,[Allergen Type] FROM [QAllergens in spec (components)]
UNION
SELECT Ing_specID,[Allergen Type] FROM [QAllergens in spec (subcomponents)]
 
Hi, thank you for reply.

I'm afraid I have no idea where to put that code....?
 
Think I got it. Thank you.
 
It is SQL. Paste it into a query design window in SQL View. It may not work, it depends whether or not you have reported the names exactly and whether or not I understood what you reported.
 
It works great thank you :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top