Query Criteria

W

wal50

I want to query a file if a field is <> 200 and <>between 30 and 39.
I get a syntax error. It doesn't seem to like the <>Between N and N. Is
this not allowed?
I have tried:
<> 200 and <>between 30 and 39 against one field
and each element separately.
The field is numeric.
Nothing seem to work.
Any ideas are appreciated.
Thanks in advance
wal50
 
L

Larry Daugherty

If MyField <> 200 then
if MyField >= 30 AND MyField <= 39 then
Run the Query ...
end if
end if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top