Query Problem

P

Paul

Hi
I have a problem with a query which hopefully somebody may be able to sort?

I have 2 tables:
tblComputer
tblHardware

which contain the following:

tblComputer:
UserID Make Value
PH Dell £500.00
AB Acorn £200.00

tblHardware
UserID Type Value
PH Zip Drive £50.00
LB Camera £100.00

I need to create a report that shows the breakdown value for each User and
the total value:
PH Dell £500.00
PH Zip Drive £50.00
Sub Total £550.00

AB Acorn £200.00

LB Camera £100.00
TOTAL £850.00

Any ideas would be greatly appreciated....
Paul
 
B

Bogdan Zamfir

Hi,

You need to use a union query, then use it as a row source for a report.

Something like this:

select UserID, Make, value from tblComputer
union
select UserID, type , value from tblHardware

Then in the report, make a grouping report, and group on UserID.

If you have any more questions or need more details, you can contact me

Regards,
Bogdan Zamfir
_________________________________
Independent consultant
 

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

Similar Threads

Subtotals, not re-initializing 2
PREVIOUS RECORD VALUE 3
PREVIOUS RECORD VALUE IN FIELD 6
Query Help.. Creating a running Total Field????? 8
Totals 2
Complex Formula 3
Query Challenge 1
Problem with Dupl Query 4

Top