combining queries

G

Guest

I have two queries. One fileds sales and total gaLLONS for the moth the other one for the year. I'm trying to combinine the queries so I can display the toals on a month and ytd date basis for a customer. When I try it by numbers get distorted but the numbers are correct in the repective individual queries.
 
C

Casey

Sounds like you need to make a report that has two subreports in it, each
subreport pointing to a different query.

You can try and join the two queries together and essentially make a one to
many relationship between the monthly records and the year records based on
a monthly record's year. This would essentially append that year's
information to each month's record but it would duplicate the yearly
information for as many months you have displayed.

You could slip that query into a single report easily though and just put
fields showing only the monthly portion of the query in the detail and then
group in the report on year and show the yearly information as a sum in the
footer.

Either way, use a report. You're into data display, not retrieval at this
point and that's what reports are for.

Casey

George Schneider said:
I have two queries. One fileds sales and total gaLLONS for the moth the
other one for the year. I'm trying to combinine the queries so I can
display the toals on a month and ytd date basis for a customer. When I try
it by numbers get distorted but the numbers are correct in the repective
individual queries.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top