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 is between
[forms]![cms report]![from] and [forms]![cms report]![to]

Regard
 
Check Help on the DSum domain aggregate function. You can't execute a Query
or SQL in the ControlSource. You can specify a Query, or SQL, or a Table in
the RecordSource of a Form, and then use the Fields in the RecordSource as
ControlSource, or use expressions (including the domain aggregate functions
which return a single value).

Larry Linson
Microsoft Office Access MVP
 

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