J
Josh
I need to hide/show some controls on a form based on the value of a
radio button. This is what I have so far and it doesn't seem to be
working correctly. My two buttons have a value of 1 and 2
respectively.
Private Sub Frame4_Click()
Select Case Frame4.Value
Case 1
Me.Combo15.Visible = False
Me.cmdUpdateRole.Enabled = False
Me.cmdEditUser.Visible = False
Call ShowEditControls 'we will need the same controls as
our edit form
Me.txtUsername.Visible = True
Call clearForm 'just in case
End Select
Select Case Me.optEdit.Value
Case 2
Me.Combo15.Visible = False
Me.cmdUpdateRole.Enabled = False
Me.cmdEditUser.Visible = False
Call ShowEditControls 'we will need the same controls as
our edit form
Me.txtUsername.Visible = True
End Select
End Sub
radio button. This is what I have so far and it doesn't seem to be
working correctly. My two buttons have a value of 1 and 2
respectively.
Private Sub Frame4_Click()
Select Case Frame4.Value
Case 1
Me.Combo15.Visible = False
Me.cmdUpdateRole.Enabled = False
Me.cmdEditUser.Visible = False
Call ShowEditControls 'we will need the same controls as
our edit form
Me.txtUsername.Visible = True
Call clearForm 'just in case
End Select
Select Case Me.optEdit.Value
Case 2
Me.Combo15.Visible = False
Me.cmdUpdateRole.Enabled = False
Me.cmdEditUser.Visible = False
Call ShowEditControls 'we will need the same controls as
our edit form
Me.txtUsername.Visible = True
End Select
End Sub