I am sure there is a simple answer, but I can't find it. Is it possible to use an "in" statement in code? I don't want to use multiple "or"s, but "in" doesn't work. Any help?
why not a like "*hi*" i know in certain places i use this and it works like you want an in statement... there are limitations, but i don't use it much...
--James JHauge@jmjpc.net
Life is change. To deny change is to deny life.
For text:
SELECT * FROM land WHERE Parcel IN("1234", "1235", "1236", "1237"
For Number:
SELECT * FROM land WHERE Parcel IN(1234, 1235, 1236, 1237) Jim Lunde
compugeeks@hotmail.com
We all agree your theory is crazy, but is it crazy enough?
For a finite number of constants or variables use SELECT.
Select Case lngCode
Case 1, 2, 3, 5, 8, 13, 21, 34, 55 ' Fibonacci numbers
.....
Case else
....
End Select
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.