Dsum is killing me

B

Barry A&P

am trying to use the following in a query that is the source for a datasheet
form


UnitsAvailable:
DSum("nz([UnitsReceived])-nz(unitssold)","T_InventoryTransactions","[partnumberID] = " & [id])

I keep getting errors. most tries prompt me for an [ID] value.. [ID] is
the name of the textbox on the datasheet form that i would like to add the
DSum to so i can have the UnitsAvailable Column.

I dont know if NZ needs to be there but some of the units sold are Nulls..

Please help i feel like i have tried a million combinations of where and
""""'s

Thanks
Barry
 
B

Barry A&P

Answered my own question...

=DSum("UnitsReceived","T_InventoryTransactions","PartNumberID = [ID]")

Never give up right
 

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