Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum on Report

Status
Not open for further replies.

naiku

Technical User
Apr 25, 2002
346
US
I am trying to get a sum on a report, but cannot get it to work. I have an unbound text box with the following control source:
=DSum("[Cost]","tblJobItemsA","[JobID] = '" & [txtJobID] & "'" And "[SupplierID] = '" & [Supplier] & "'")

However, at the moment the criteria for supplier is not working. So I end up with the sum of costs for all suppliers, am I missing something on my above Dsum? Thanks.
 
Fixed using a query and Dlookup. Also found out that I had extra double quotes around the AND part of the DSum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top