1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: DCount problem in Access 2003

Discussion in 'Business Applications' started by hernanuel, Apr 2, 2008.

Thread Status:
Not open for further replies.
Advertisement
  1. hernanuel

    hernanuel Thread Starter

    Joined:
    Mar 31, 2008
    Messages:
    5
    I get "#error" when all of the criteria match. When everything doesnt match up, it gives me 0. Any ideas??? Thanks.



    =DCount("[Department]","Main Query","[Department] = 'Business Technology' And [Affiliation] = ('Faculty' or 'Staff') And [Categories] = 'Reference & Instruction' ")
     
  2. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    Why and where are you using the Dcount?
     
  3. hernanuel

    hernanuel Thread Starter

    Joined:
    Mar 31, 2008
    Messages:
    5
    I'm using it in an Access report, in a text box. I got it to work though.

    THANKS!
     
  4. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    henanuel, would you like to post your "Fix" for others to see and also mark this Thread as "Solved" using the Thread Tools at the top of the Thread please?
     
  5. hernanuel

    hernanuel Thread Starter

    Joined:
    Mar 31, 2008
    Messages:
    5
    Sure, it was fixed when I wrote:

    =DCount("[Department]","Main Query","[Department] = 'Business Technology'" And [Categories] = 'Reference & Instruction' " AND "([Affiliation] = 'Faculty' " OR [Affiliation] = 'Staff')")
     
  6. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    Thanks (y)
     
  7. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/699655

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice