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

dsum - easy question

Status
Not open for further replies.

Onslaughtdave

Programmer
Jan 24, 2005
59
CA
Hi,

Im tring to run the dsum function thru the form_current() trigger.

The problem im having is that i get the vba error:
" Run-time error '2001':
You canceled the previous operation"

here is the code im running:
curTot = DSum("[cost1]+[cost2]+[cost3]+[cost4]", "table1", "table1![ANum] = table2![ANum]")

is this the proper way to reference a table in a DSum?

I am running this on a form, if that makes any diferences...


thanks,

dave
 
How the DSum could know this value (table2![ANum]) ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
It is just an example without have to use the actual table names...

sorry for any confusion
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top