How to Subtract 2-Sums on a report?

W

Will

My report list product sales.
It groups on Product Number and on Sale or Return

If Sale is True then Qty_Shipped is how many we shipped for that order
If Return is True then Qty_shipped is how many we got back... (returned
products)

I have it summing Qty_Shipped like this =Sum([Qty_Shipped])

And it sums the Qty_Shiped for Sales and it sums Qty_Shipped for Returns.

How can I get it to subtract the Returns from the Shipped so I have net new
products shipped?

thanks for any help.
 
G

G. Vaught

NewProducts Shipped:(Sum([Qty-Shipped]) - (Sum([Qty-Shiped]))) This would
appear in a query. If you are using a textbox on a form or report, then drop
the Field Name and type = instead in the textbox Control Source. You may
have to tweak the parthenses.
 

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

Top