Excluding Wild Card Search (1 Viewer)

Access_Help

Registered User.
Local time
Today, 11:43
Joined
Feb 12, 2005
Messages
136
=Count(IIf([Grade]="A*")

How do I get this to only count A* grades and prevent it from performing like a wild card search.

I know this might be something simple, but just can't figure it out.
 

Galaxiom

Super Moderator
Staff member
Local time
Tomorrow, 04:43
Joined
Jan 20, 2009
Messages
12,852
Normally you would surround the * with square brackets
[*] to prevent it being the wildcard but it only works with the Like operator not equals.

That expression isn't going to work anyway.

Maybe you really just want a DCount rather than a query.
Code:
DCount("*", "tablename", "Grade='A*'")

Otherwise, what does the rest of your query look like and what will it be used for?
 

Users who are viewing this thread

Top Bottom