Sum

  • Thread starter Thread starter Pietro
  • Start date Start date
P

Pietro

Hi,
What's the code that i should put in the controlsource of an unbound
control to do this:

Sum the field Calls of the query CMSdaily where datec between [forms]![cms
report]![from] and [forms]![cms report]![to]

Regard
 
Hi Pietro,

A dSum is the most obvious. The expression in the control will be:
=dSum("Calls","CMSdaily","datec between #" & [forms]![cms report]![from] &
"# and #" & [forms]![cms report]![to] & "#")

Note the use of the # character as the delimiter for the date/time fields.

HTH,

Rob
 

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

Back
Top