By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,483 Members | 1,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,483 IT Pros & Developers. It's quick & easy.

Trying to do a dcount with multiple criteria.

P: 10
Hi All


Trying to do a dcount with multiple criteria for example: =DCount("[ID]","access rights","[user id] = 'kev'" and [table]='Christian Fellowship members temp'" And [add]='yes'")


Thanks for any assistance
Jun 21 '10 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 1,221
I'm not sure but I think following your single quotes with a double quote is causing the problem. You don't really need those double quotes. Since you are only using constants to compare against, I think you want this, only using the double quotes at the beginning and ending of the entire criteria.

=DCount("[ID]","access rights","[user id] = 'kev' and [table]='Christian Fellowship members temp' And [add]='yes'")

Jim
Jun 21 '10 #2

P: 10
hey thanks it worked ......
Jun 21 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.