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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Creating a report to merge 2 queries



 
 
Thread Tools Display Modes
  #1  
Old July 3rd, 2009, 12:01 AM posted to microsoft.public.access
LG
external usenet poster
 
Posts: 207
Default Creating a report to merge 2 queries

I have created 2 queries. They both have the same field names. Date,
Platform, Platform count. When they open up the report they put the date in
and they get how many entries per platform for each group. The problem I am
having is how do I get them to merge together to get a total without
duplicating if there is nothing on that platform for that day?
I tried to create another query but since the fields were the same I didn't
know what to call it or how to build a sum field. The 2 queries are Com and
Rph
there are 4 platforms and I need them to show seperate but also sum at the
end.
  #2  
Old July 3rd, 2009, 12:25 AM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Creating a report to merge 2 queries

On Thu, 2 Jul 2009 16:01:01 -0700, LG wrote:

I have created 2 queries. They both have the same field names. Date,
Platform, Platform count. When they open up the report they put the date in
and they get how many entries per platform for each group. The problem I am
having is how do I get them to merge together to get a total without
duplicating if there is nothing on that platform for that day?
I tried to create another query but since the fields were the same I didn't
know what to call it or how to build a sum field. The 2 queries are Com and
Rph
there are 4 platforms and I need them to show seperate but also sum at the
end.


Take a look at the Help for UNION. I suspect you need a UNION query to string
the two queries together.
--

John W. Vinson [MVP]
  #3  
Old July 3rd, 2009, 05:11 AM posted to microsoft.public.access
Tom Wickerath
external usenet poster
 
Posts: 3,914
Default Creating a report to merge 2 queries

To add some to John's answer, here is a tutorial on Union Queries, written
many years ago by a colleague at my place of work (as evidenced by the
data!!).

http://www.accessmvp.com/TWickerath/...ionqueries.zip


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________

"John W. Vinson" wrote:

On Thu, 2 Jul 2009 16:01:01 -0700, LG wrote:

I have created 2 queries. They both have the same field names. Date,
Platform, Platform count. When they open up the report they put the date in
and they get how many entries per platform for each group. The problem I am
having is how do I get them to merge together to get a total without
duplicating if there is nothing on that platform for that day?
I tried to create another query but since the fields were the same I didn't
know what to call it or how to build a sum field. The 2 queries are Com and
Rph
there are 4 platforms and I need them to show seperate but also sum at the
end.


Take a look at the Help for UNION. I suspect you need a UNION query to string
the two queries together.
--

John W. Vinson [MVP]

 




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 06:45 PM.


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