Display totals on a form

W

weircolin

Hi all

Is it possible to display totals on a form by selecting criteria? Such
as, how many new people have been added in the month of july?

Thanks

Colin
 
M

Michel Walsh

Hi,


You can use DCOUNT, DSUM, and so on, with an appropriate third argument (the
criteria). Since your end user are probably not expected to know how to
supply that third argument, your interface and your VBA code would have to
guide them, 'asking' the right question, or presenting the 'choices' (like
wizard do, if that is complex), and then, your code would push the result,
of the DCount or of the DSum, into the right unbound control, so the final
result is then seen by your end user.

Note that when you filter a form, the number of records satisfying the
filter is displayed, near the navigation buttons. That may answer very basic
"count" question, using only the already available interface.

Hoping it may help,
Vanderghast, 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

Top