Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help excluding various records from query need expression for criteria

Status
Not open for further replies.

fish2

Technical User
Oct 24, 2002
13
0
0
US
I have looked at other threads regarding this and I cannot seem to find one that is helping me....Please help

Query looks like this:

Member ID
Name
Class

I need to exclude certain "class" records specifically 80,90,86. What expression do I use to set this criteria.

Thanks in advance for anyone's help!!!!!!!!!!!!
 
Not In(80,90,86)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
It came up with the following error:

"Data type mismatch in critreia expression"

There are 80, 90, 86 classes????

 
If the field is not defined as numeric:
Not In('80','90','86')

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Still not working...The report is still showing the classes. What could I be doing wrong? HELP HELP! PLEASE
 
I figured it out....i needed to use the following expression:

<>" 90" And Not Like " 80" And Not Like " 86
 
Or this ?
Not In(' 80',' 90',' 86')

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top