Dsum usage (limiting to a certain item)

V

Veli Izzet

Hi all,

I need to have the sum of all transactions for a certain item ONLY on
the from of that item.

using Dsum(Quantity, Table) gives the total Quantity of ALL items.

I tried Dsum(Quantity, Table, ProductId=Me!ProductID) with a Null result.

Any help?
 
A

Allen Browne

Where are you using this? If in the Control Source of a text box on a form,
try:
=DSum("Quantity", "Table", "ProductId = " & [ProductID])

DSum() takes the same arguments as DLookup(), which is explained in this
link:
http://allenbrowne.com/casu-07.html
 

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

Similar Threads

Dsum Issues 0
DSum() 1
DSum Problem 4
Medium Price 4
Need help to Simplify a Complex Calculation on a Form 0
error 3075 4
dsum issue 1
Dsum with variable 4

Top