Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

using not operator and

Forum home » Delegate support and help forum » Microsoft Access Training and help » Using NOT operator and filtering data

Using NOT operator and filtering data

ResolvedVersion 2010

Lien has attended:
Access Introduction course
Excel Advanced course
Access Intermediate course
Excel VBA Introduction course

Using NOT operator and filtering data

In a table I have one column as Workstream and another column as Cost centre. If I want to run a query to return certain values of the Workstream and also to exclude one value of a Cost centre (within the values of the Workstream) I use the <> operator on the Cost centre. This is on the same line as the Workstream criteria so it acts as an AND condition. I have checked the outcome with and without using the <> Cost centre so the outcome is correct, but when I come to filter on the data of the Cost centre column, it gives an error message "Syntax error (missing operator) in query expression 'Cost centre'." I click ok but I'm not able to filter on the Cost centre column as no filter values come up. My result looks correct but why do I get this error message and cannot filter?

RE: Using NOT operator and filtering data

Hi Lien

Thanks for your question.
I've tried to duplicate your table and query and have not as yet had the error message you are getting. Perhaps send a similar example to us and I'll take a look. Please send to info@stl-training.co.uk and ask for your forum question to be forwarded to Doug Dunn.

Thanks for now

Regards
Doug Dunn
STL

Access tip:

Copy a Previous Record's Values to a New Record

If you often enter the same value in one field of a table, there are two methods to save re-typing the data.

1. Use Ctrl+' (apostrophe) to repeat the value input in the previous record.

2. Change the field's DefaultValue property in Design View to the most commonly used value.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.