Solved: DCount problem in Access 2003

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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' ")
 

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!
 

OBP

Joined
Mar 8, 2005
Messages
19,896
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?
 

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')")
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Members online

Top