Thanks Tilemachos,
That works, as does, I discovered, this:
SELECT id, username, password, accesslevel FROM pw WHERE company='minster' OR accesslevel BETWEEN 0 AND 2 ORDER BY UPPER(username) ASC
which is fine as long as the numbers are in series but they may not always be (the query is dynamically generated).
I have also tried this:
SELECT id, username, password, accesslevel FROM pw WHERE company='minster' AND accesslevel IN (0, 1, 2) ORDER BY UPPER(username) ASC
which doesn't work either (although I'm sure it should.)
Is there any other syntax I can try?
Any pointers would be appreciated.
Fergus