Dsum() function Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dsum("[ActualQty]","[Material Arriving Status]","CO=Me!CO")
It gets "You cancelled previous operation"
 
In
Shell said:
Dsum("[ActualQty]","[Material Arriving Status]","CO=Me!CO")
It gets "You cancelled previous operation"

Yes, you generally get that message from the domain aggregate functions
when the query the function builds internally from the parameters you
provide is not valid. In this case, it's your use of the "Me" keyword,
which means nothing to the function.

If the CO field is a numeric field, try this:

Dsum("[ActualQty]","[Material Arriving Status]","CO=" & Me!CO)

If it's a text field (and won't contain the single-quote character, try
this:

Dsum("[ActualQty]","[Material Arriving Status]","CO='" & Me!CO &
"'")

If it might contain the single-quote character, but won't contain the
double-quote character, try this:

Dsum("[ActualQty]","[Material Arriving Status]","CO=" & _
Chr(34) & Me!CO & Chr(34))
 

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 - Pass a variable for the column? 4
DSum Problem 4
DSum() 1
Help with expression 4
DSum 1
dsum - 1
Running balances 2

Back
Top