Creating A Monthy Report Based On Several Querys

G

Guest

I have two querys "Wages Query" & "Expenses Query" which displays the
following values

Wages Query Expenses Query

Month Amount Month
Amount
8 £12,000 8
£22,000
9 £20,000 9
£27,000

I want to create a Monthly Report where i can select the Month value from a
form and a report is generated showing the specified months data eg amount of
wages and amount of expenses. Can anyone help me please
 
G

Guest

StuJol said:
I have two querys "Wages Query" & "Expenses Query" which displays the
following values

Wages Query Expenses Query

Month Amount Month Amount
8 £12,000 8 £22,000
9 £20,000 9 £27,000
 
D

Duane Hookom

Create a union query based on your two queries:
SELECT Month, "wages" as Category, Amount
FROM qWages
UNION ALL
SELECT Month, "Expenses", Amount
FROM qExpenses;

Make your report based on this union query.
 
G

Guest

Thanks for info.

Im still not sure how to create a union query, please could you explain how
to build this in simple terms. Many Thanks. What part of the query do you
type union in?
 
D

Duane Hookom

You must enter sql similar to my earlier reply in the SQL view of the query.
If your query and fields names are different, then you must change them.

There is no "gui" design view of a union query.
 

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