S
ssmithri
Greetings,
I am trying to hide/unhide subforms based on a value in a combobox. M
forms are named exactly as the values in the combo.
Here is the code:
Private Sub flp_Change()
Dim rs As String
rs = (Me.flp.Value) <-- this is the value in the combobox
If Me.flp.Value = rs Then
Me(rs).Form.Visible = True
Else
Me(rs).Form.Visible = False
End If
End Sub
This actually works, however, all previously "unhidden" subforms sta
on the screen.
Any thoughts? Thanks
I am trying to hide/unhide subforms based on a value in a combobox. M
forms are named exactly as the values in the combo.
Here is the code:
Private Sub flp_Change()
Dim rs As String
rs = (Me.flp.Value) <-- this is the value in the combobox
If Me.flp.Value = rs Then
Me(rs).Form.Visible = True
Else
Me(rs).Form.Visible = False
End If
End Sub
This actually works, however, all previously "unhidden" subforms sta
on the screen.
Any thoughts? Thanks