Dcount

  • Thread starter Thread starter smcgrath via AccessMonster.com
  • Start date Start date
S

smcgrath via AccessMonster.com

I have a report that uses a form to filter the persontype which works fine,
However, I would like to count the number of people that made a donation and
the total number of that particular person type so that I can eventually get
a percentage of persontype that made a donation (#of persons that made
donation/#persontype) I can't get the Dcount function to only count the
person type that is filtered from the form.

I have tried Dcount("[Perstype]","members","'[PersType]=&[Forms]![Form1]!
[perstype]'")

What am I missing?
 
If PersType is numeric:
Dcount("[Perstype]","members","[PersType]=" & [Forms]![Form1]! [perstype])


If PersType is text:
Dcount("[Perstype]","members","[PersType]=""" & [Forms]![Form1]! [perstype]
& """")
 
Thank you very very much...it worked perfectly.

Duane said:
If PersType is numeric:
Dcount("[Perstype]","members","[PersType]=" & [Forms]![Form1]! [perstype])

If PersType is text:
Dcount("[Perstype]","members","[PersType]=""" & [Forms]![Form1]! [perstype]
& """")
I have a report that uses a form to filter the persontype which works fine,
However, I would like to count the number of people that made a donation
[quoted text clipped - 9 lines]
What am I missing?
 

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