W
wizard_chef
I seem to have an ongoing problem with totals in reports. Here is the
latest mystery.
I have a customer-sales relational database with linked tables:
customer, order, order details, payment, etc. I am trying to create a
simple report that will show the sales recorded as reported according
to a specified date of bank deposit. I run a query that is accessed by
my report, and I gather: customer name, the items purchased by purchase
date, the quantity and per unit price, the shipping, and the payment
made by the customer (not always equal to the order total).
In the report under a "paymentdatefooter" I show the "this order total
including shipping" (=sum([quantity*unitprice]) + freightcharge). There
is no grouping set on this quantity. I also show the "paymentamount"
that was paid for this order. No grouping here. Everything here
computes OK for each order in the report. Now, in the Report Footer I
computer the bank deposit (the total for this report) grand total which
is simply "=sum([paymentamount])". (Again, of course, no grouping.)
For some strange reason, the report grand total is adding one of the
orders twice. This particular order has a shipping charge associated
with it (none of the others have this), making me think the problem has
something to do with the shipping charge.
I am stumped. It is too straightforward.
Ideas, anyone?
latest mystery.
I have a customer-sales relational database with linked tables:
customer, order, order details, payment, etc. I am trying to create a
simple report that will show the sales recorded as reported according
to a specified date of bank deposit. I run a query that is accessed by
my report, and I gather: customer name, the items purchased by purchase
date, the quantity and per unit price, the shipping, and the payment
made by the customer (not always equal to the order total).
In the report under a "paymentdatefooter" I show the "this order total
including shipping" (=sum([quantity*unitprice]) + freightcharge). There
is no grouping set on this quantity. I also show the "paymentamount"
that was paid for this order. No grouping here. Everything here
computes OK for each order in the report. Now, in the Report Footer I
computer the bank deposit (the total for this report) grand total which
is simply "=sum([paymentamount])". (Again, of course, no grouping.)
For some strange reason, the report grand total is adding one of the
orders twice. This particular order has a shipping charge associated
with it (none of the others have this), making me think the problem has
something to do with the shipping charge.
I am stumped. It is too straightforward.
Ideas, anyone?