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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query does not filter records

Status
Not open for further replies.

kbestle

Technical User
Mar 9, 2003
67
US
I have a table that has a field that contains data like 04 or UB or NX. I have a query that the criteria on this field is <> "NX". When I run the query I still see some records with this entry. I have also tried Not "NX". I am using Access 2007. Any insights will be greatly appreciated.
 
Post the SQL code.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
SELECT dbo_qryAssignedPSRs.PartNo, dbo_qryAssignedPSRs.Description, dbo_qryAssignedPSRs.InventoryPlanning
FROM dbo_qryAssignedPSRs
WHERE (((dbo_qryAssignedPSRs.InventoryPlanning)<>"nx"));
 
I'd replace this:
WHERE (((dbo_qryAssignedPSRs.InventoryPlanning)<>"nx"))
with this:
WHERE dbo_qryAssignedPSRs.InventoryPlanning<>'NX'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top