Dcount

B

Brian

I have a form with a bound box that i can't seem to get
working. I am using the following command: =DCount
("[DateMI]","[qryResidentsMain]","[qryResidentsMain]!
[Date] = [qryResidentsMain]![DateMI]"). What am I doing
wrong?
 
J

John Vinson

I have a form with a bound box that i can't seem to get
working. I am using the following command: =DCount
("[DateMI]","[qryResidentsMain]","[qryResidentsMain]!
[Date] = [qryResidentsMain]![DateMI]"). What am I doing
wrong?

Are Date and DateMI both fields in the Query? If so, you don't need to
name the query in the criterion (or, if you do, you should use a .
rather than a ! delimiter).

Also, you're not really counting DateMI - you're counting records. You
should get the result you want using

=DCount("*", "[qryResidentsMain]", "[Date] = [DateMI]")

Do note that Date is a reserved word and Access will sometimes confuse
it for the Date() function, returning the system clock date - but I
don't think this looks like a case where that's the problem.
 

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

DCount() 1
Dcount Problem 3
Still struggling with DCount 9
Dcount Error 1
dcount 1
Printer Page & Drawing Page 0
DCount problem redux 4
DCOUNT Dropdown 1

Top