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.
=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.