DSUM Function

S

SHIPP

=DSum("[0]","qxtbDivisionDecCodeCurrentPreviousWeek",
"[SortOrder] = 'Current'" & " and [NASCResponsible]=" & [Me].[NASCResponsible])

Can anyone tell my why this DSum function returns #Error.
 
K

Ken Snell

"[0]" is not appropriate for the field name. One, a field cannot be named as
a number; two, you don't use [ ] when naming a field in this argument.

Are you trying to count the number of records that match the criteria? Or
are you trying to add a number together each time a record matches?

Please provide more info about what you're trying to accomplish.
 

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