M
manish
dear all
I have a query based on two tables. One table contains the
details of all invoice raised to clients as follows:
"Invoice No"
"Inv date"
"Inv amt"
The other table contains the details of all payments
received against invoices. Sometimes there are two-three
payments against a particular invoice.
For example take an invoice details as
Inv no - 0406/01
Inv dt - 02/02/04
Inv Amt - 10000
Now against this invoice if payment has bee received as
follows:
rec date inv no amt received
10/3/04 0406/01 5000
20/3/04 0406/01 2000
30/3/04 0406/01 3000
Now i have set up a query to relate the invoices and
receipts. Similarly in my reports i have grouped it on the
basis of Inv no.
So my report shows something like this
Inv No. Date Amt Rec Date Amt rec
------ ----- ---- -------- -------
0406/01 02/02/04 10000
10/3/4 5000
20/3/4 2000
30/3/4 3000
Now my problem is that when i derive the total of the
Invoice amount the amount is three times added to the
total even though i have grouped it on invoice no. Thus if
i have five receipts the total amount will increased by
four more times of the amount. What is the solution to
this. Please Help!!!! Urgently required or else my Boss
will Kill me.
Urgently awaiting any response.
Manish
I have a query based on two tables. One table contains the
details of all invoice raised to clients as follows:
"Invoice No"
"Inv date"
"Inv amt"
The other table contains the details of all payments
received against invoices. Sometimes there are two-three
payments against a particular invoice.
For example take an invoice details as
Inv no - 0406/01
Inv dt - 02/02/04
Inv Amt - 10000
Now against this invoice if payment has bee received as
follows:
rec date inv no amt received
10/3/04 0406/01 5000
20/3/04 0406/01 2000
30/3/04 0406/01 3000
Now i have set up a query to relate the invoices and
receipts. Similarly in my reports i have grouped it on the
basis of Inv no.
So my report shows something like this
Inv No. Date Amt Rec Date Amt rec
------ ----- ---- -------- -------
0406/01 02/02/04 10000
10/3/4 5000
20/3/4 2000
30/3/4 3000
Now my problem is that when i derive the total of the
Invoice amount the amount is three times added to the
total even though i have grouped it on invoice no. Thus if
i have five receipts the total amount will increased by
four more times of the amount. What is the solution to
this. Please Help!!!! Urgently required or else my Boss
will Kill me.
Urgently awaiting any response.
Manish