Switch the query to SQL View (View menu), and change the WHERE clause so it
looks like this:
WHERE ([ACU] <> 19) OR ([ACU] Is Null) OR ([MyField] <> Left([Loc_Name,3))
In place of "MyField", substitute the name of the field that must not match
the left 3 characters of the Loc_Name field.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
>I have to have a criteria in a field where the data must not match the
>first
[quoted text clipped - 3 lines]
>
> <>Left([LOC_NAME],3) and ([ACU] NOT "19")
JoeA2006 - 03 Aug 2006 18:44 GMT
That syntax works but I don't think my logic is correct. I am trying to
return the records where <>Left([Loc_Name],3)--(this column name is LocCode)
except in the case of the ACU = "19".
So the only records returned in which a LocCode matches the first three
letters of a location name would ACU 19. All the other records would have
LocCode that does not match the first three letters of Loc_Name.
> Switch the query to SQL View (View menu), and change the WHERE clause so it
> looks like this:
[quoted text clipped - 11 lines]
> >
> > <>Left([LOC_NAME],3) and ([ACU] NOT "19")
JoeA2006 - 03 Aug 2006 18:56 GMT
I got it. I need to have the ACU = 19 OR <> Left([Loc_Name,3))
Thanks
> Switch the query to SQL View (View menu), and change the WHERE clause so it
> looks like this:
[quoted text clipped - 11 lines]
> >
> > <>Left([LOC_NAME],3) and ([ACU] NOT "19")