splint1906
Technical User
I have a table with Vendor#, VendorName and Status. The Status field has either OBS (Obsolete), NA (not available) or is blank.
I am trying to write a query that displays all Vendor# when Status field does not equal OBS or NA but, I can't get it to work right. My problem is the WHERE statement. I'm not sure if <>"OBS" is the right syntax.
The SQL is:
SELECT Vendors.VendorCode, Vendors.VendorName, Vendors.VendorUnion
FROM Vendors
WHERE (((Vendors.VendorUnion)<>"OBS" Or (Vendors.VendorUnion)<>"NA"))
ORDER BY Vendors.VendorCode;
I am trying to write a query that displays all Vendor# when Status field does not equal OBS or NA but, I can't get it to work right. My problem is the WHERE statement. I'm not sure if <>"OBS" is the right syntax.
The SQL is:
SELECT Vendors.VendorCode, Vendors.VendorName, Vendors.VendorUnion
FROM Vendors
WHERE (((Vendors.VendorUnion)<>"OBS" Or (Vendors.VendorUnion)<>"NA"))
ORDER BY Vendors.VendorCode;