A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Add 2 queries



 
 
Thread Tools Display Modes
  #1  
Old July 9th, 2009, 03:47 PM posted to microsoft.public.access.queries
rscosta
external usenet poster
 
Posts: 5
Default Add 2 queries

Hi

I've build two diferente queries with the same fields (they have diferent
records). How can I add the 2 queries in just one?

Thanks

Ricardo

  #2  
Old July 9th, 2009, 04:11 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Add 2 queries

Use a union query.
Or why not just use one and put your criteria in separate rows in the
design view. This ORs the criteria.

"rscosta" wrote:

Hi

I've build two diferente queries with the same fields (they have diferent
records). How can I add the 2 queries in just one?

Thanks

Ricardo


  #3  
Old July 9th, 2009, 04:40 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Add 2 queries

rscosta wrote:
I've build two diferente queries with the same fields (they have diferent
records). How can I add the 2 queries in just one?



Try using a UNION query to do it.

SELECT ...
UNION ALL
SELECT ...

That can not be done in the query design grid so you'll have
to use SQL view to create the combined query.

If that's not what you mean by "add the 2 queries in just
one", post back with more details about what the final
results you are trying to achieve.

--
Marsh
MVP [MS Access]
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:07 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.