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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dsum on table records

Status
Not open for further replies.

RealKiwi

Technical User
Feb 26, 2004
41
NZ
Im trying to the Dsum value from a table, immediately following the addition of data to the new record's last field: Amount. For reasons unknown to me, the Dsum only sums across other table records, and does not include the newly added record.

What is the accepted workaround for this problem?

Here is the Dsum calculation:

intSumItemDrops = DSum("[dp_AMT]", "tblOrderDrops", "[dp_ITMID] = " & vOrderItem)

TAA
RK
 
Solved my own problem -- just forced a form recalc before doing the Dsum:

Me.Recalc

It would be nice to know why it wasn't working, but my guess is it's something to do with "dirty" records??

RK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top