I need to exit the select case in vba ms access but I cant figure how to do it, this is a screen shot of the error I get.
Asked
Active
Viewed 3,492 times
-3
-
what's stopping you typing text? – Mitch Wheat Dec 07 '13 at 09:26
1 Answers
2
If this won't work...
Select Case Cat
Case 1
If (Condition1 Or Condition2 Or Condition3) Then
Exit Select ' <- Compile error
End If
' do stuff
...then why not just do this instead?
Select Case Cat
Case 1
If Not (Condition1 Or Condition2 Or Condition3) Then
' do stuff
End If

Gord Thompson
- 116,920
- 32
- 215
- 418