wizcow
Registered User.
- Local time
- Today, 03:07
- Joined
- Sep 22, 2001
- Messages
- 236
Join Brain Bender
Sorry in advance for the length of this post.
In my db I have an Invoice form and a Return form.
What I want to do is output archived data from these two forms into a report.
The report is sorted by the employee who did the sale and by payment type.
The report prints the name of the employee and under each employee the payement types and amounts are listed.
Here is a brief example...
Employee1
visa $25.00
cash $ 5.00
invoice total $30.00
Employee2
visa $12.00
cash $ 0.00
invoice total $12.00
I have this part working.
------------------------------------------------------------------
I want to add a 'return' total, with the total, like this..
Employee1
visa $25.00
cash $ 5.00
return total $ 2.00
invoice total $28.00
This is what I have tried..
I have a query based on the invoices
I have a query based on the returns that totals the returns for each employee.
I have a union query that groups the invoice/return dates and employees together.
I based my report on a query based on these three querys as I am trying to get the invoice data and return data together in one query.
I feel I am having trouble with left and right joins, as I am not getting the right data back.
If you have had the patience to read all this, thank you.
I'm hoping someone can see what is going wrong here.
Tom
Sorry in advance for the length of this post.
In my db I have an Invoice form and a Return form.
What I want to do is output archived data from these two forms into a report.
The report is sorted by the employee who did the sale and by payment type.
The report prints the name of the employee and under each employee the payement types and amounts are listed.
Here is a brief example...
Employee1
visa $25.00
cash $ 5.00
invoice total $30.00
Employee2
visa $12.00
cash $ 0.00
invoice total $12.00
I have this part working.
------------------------------------------------------------------
I want to add a 'return' total, with the total, like this..
Employee1
visa $25.00
cash $ 5.00
return total $ 2.00
invoice total $28.00
This is what I have tried..
I have a query based on the invoices
I have a query based on the returns that totals the returns for each employee.
I have a union query that groups the invoice/return dates and employees together.
I based my report on a query based on these three querys as I am trying to get the invoice data and return data together in one query.
I feel I am having trouble with left and right joins, as I am not getting the right data back.
If you have had the patience to read all this, thank you.
I'm hoping someone can see what is going wrong here.
Tom