Compile Error Expected Case (1 Viewer)

Spam808

Registered User.
Local time
Today, 10:08
Joined
Dec 3, 2018
Messages
55
I am working on creating hidden text boxes. Based on the selection from a combo box, it will display the hidden text boxes. I didnt get a chance to finish writing my code. It is displaying Complie Error Expected Case.

Private Sub Form_Current()
Dim Visible As Boolean
Select cboRowNumbers.Value
Case "",
Visible = False
Case Else
Visible = True
End Select
End Sub
 

theDBguy

I’m here to help
Staff member
Local time
Today, 10:08
Joined
Oct 29, 2018
Messages
21,497
Hi,

You want...

Code:
Select Case Me.cboRowNumbers
Hope it helps...
 

JHB

Have been here a while
Local time
Today, 19:08
Joined
Jun 17, 2012
Messages
7,732
And it is a comma to much here:
Code:
Case ""[B][COLOR=Red],[/COLOR][/B]
 

theDBguy

I’m here to help
Staff member
Local time
Today, 10:08
Joined
Oct 29, 2018
Messages
21,497
You're welcome. We're happy to assist. Cheers!
 

Users who are viewing this thread

Top Bottom