I have been programming in access for over 30 years but the brain is apparently fading at age 92. This where cause and I quote "WHERE (((SECURITY.SecType)="S" Or (SECURITY.SecType) = "E"));" works fine in a test query created in the designer but when created in a subroutine and executed it displays the "Error" that the where cause should stop after the first criteria. I just will not handle "OR". Now my old thinking is no matter what the quoted letter is the query should work, just not find that letter in my table. However the table does have both E's and S's.
Now hopefully I am just an old guy that has forgot some obvious syntax difference from that created by the designer and that required when executed in code. On the other hand, you may require that I include the entire query which is a simple Select query.
Appreciate,
Ed