A
Anth Stever
Here are the tables involved:
=======Orders=========
OrderID
SalesTax (amount, not rate)
ProductTotal
DeliveryCharge
AmountPaid
=====Order Details=======
OrderID
Product
Price
Qty
Discount
======================
I use a query to join the two and that is the basis for my report. In the
Detail section of the report, I have the fields from Order Details. The
fields from the Orders table are in the OrderID Footer section. So far, no
problem. In the Report Footer, I want to sum the fields from the Orders
table. That doesn't work because in the query each row contains the
DeliveryCharge for the entire order. Therefore, =sum(deliverycharge)
doesn't give me the total of all orders' delivery charges. Instead, it
gives me sum(DeliveryCharge * # of items on Order). How do I fix this?
At the end of this adventure, I want to (in the Report Footer) be able to do
something like this:
BalanceDue =
sum(ProductTotal)+sum(SalesTax)+sum(DeliveryCharge)-sum(AmountPaid)
Any help?
Thanks,
/\nth
=======Orders=========
OrderID
SalesTax (amount, not rate)
ProductTotal
DeliveryCharge
AmountPaid
=====Order Details=======
OrderID
Product
Price
Qty
Discount
======================
I use a query to join the two and that is the basis for my report. In the
Detail section of the report, I have the fields from Order Details. The
fields from the Orders table are in the OrderID Footer section. So far, no
problem. In the Report Footer, I want to sum the fields from the Orders
table. That doesn't work because in the query each row contains the
DeliveryCharge for the entire order. Therefore, =sum(deliverycharge)
doesn't give me the total of all orders' delivery charges. Instead, it
gives me sum(DeliveryCharge * # of items on Order). How do I fix this?
At the end of this adventure, I want to (in the Report Footer) be able to do
something like this:
BalanceDue =
sum(ProductTotal)+sum(SalesTax)+sum(DeliveryCharge)-sum(AmountPaid)
Any help?
Thanks,
/\nth