dcount won't work?

A

Arlend Floyd

This is what i have. I need to match all 3 criteria's. It returns all records
what am I doing wrong?

=nz(DCount("[TicklerID]","[dbo_Ticklers]","[RepForName] =
[Forms]![FrmToday]![FrmMenuSub]![FullName]" And "[TicklerRead] = 'New'" And
"[TicklerDone]=0"),0)

Thanks,

Arlend Floyd
 
M

Marshall Barton

Arlend said:
This is what i have. I need to match all 3 criteria's. It returns all records
what am I doing wrong?

=nz(DCount("[TicklerID]","[dbo_Ticklers]","[RepForName] =
[Forms]![FrmToday]![FrmMenuSub]![FullName]" And "[TicklerRead] = 'New'" And
"[TicklerDone]=0"),0)


The ANDs need to be inside the quotes:

=Nz(DCount("[TicklerID]","[dbo_Ticklers]",
"RepForName = Forms!FrmToday!FrmMenuSub!FullName And
TicklerRead = 'New' And TicklerDone=0"), 0)
 

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