Expected: expression

irade92

Registered User.
Local time
Today, 04:57
Joined
Dec 26, 2010
Messages
229
In this simple line of code:
If Left(mOsig, 4) Not In("4834", "4835", "4836", "4837") Then


i got this message: Expected: expression and cursor locate at In..and cannot go anyfurther..What is the problem

I have seen similar example in the books and seems everything is ok..
Please any idea
 
To my knowledge you can't use IN() in VBA; it's only in JET SQL. You'd have to do individual comparisons.
 

Users who are viewing this thread

Back
Top Bottom