-3

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.

enter image description here

Erik A
  • 31,639
  • 12
  • 42
  • 67
Osama_Almaani
  • 896
  • 7
  • 16

1 Answers1

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