>I have a guess. This could be a confusion with the between() function and the SQL between filter clause. The between in SQL expects the following syntax: between startrange AND endrange. If SQL is interpreting your between as that kind of between, it is interpreting "between(...) and number" as one condition. Then it sees "not in" and goes "huh?". This would explain why the subquery doesn't work and the big select doesn't. If you change your "between(...) and number not in..." to " fldname between startrange and endrange and number not in...", it might be all better.
I had that thought and as part of my testing, I dropped the between() part of the clause and only had the lettertype = "". But the problem still persisted.
Thanx
Fred Lauckner
You know, it works on my computer. I don't know what your problem is.
.Net aint so bad.