Trying to do a dcount with multiple criteria.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trinismooth
    New Member
    • Oct 2007
    • 10

    Trying to do a dcount with multiple criteria.

    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
  • jimatqsi
    Moderator Top Contributor
    • Oct 2006
    • 1293

    #2
    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

    Comment

    • trinismooth
      New Member
      • Oct 2007
      • 10

      #3
      hey thanks it worked ......

      Comment

      Working...