I am trying to code the following:
Do While (Mid(s, 5, 1) = "." or _
Left(s,4) in _
("9001", "9003", "9005", "9006", "9007", "9008"
) _
And ts.AtEndOfStream <> True
The code errors on the in statement saying "Expected: )". Obviously the "in" keyword is not a keyword in VBA like it is in SQL.
Any ideas. I don't want to have to separate each comparison out as it makes it hard to read.
Thanks,
Tammy
Thank you for your help.
Tammy
Do While (Mid(s, 5, 1) = "." or _
Left(s,4) in _
("9001", "9003", "9005", "9006", "9007", "9008"
And ts.AtEndOfStream <> True
The code errors on the in statement saying "Expected: )". Obviously the "in" keyword is not a keyword in VBA like it is in SQL.
Any ideas. I don't want to have to separate each comparison out as it makes it hard to read.
Thanks,
Tammy
Thank you for your help.
Tammy