DaniBoy
Registered User.
- Local time
- Today, 23:19
- Joined
- Nov 18, 2001
- Messages
- 174
I am trying to make a code for an Option group so that when the option button is selected it makes certian comoboxes visible=false. I did this but it does not work. I cant remember how to do it. Please help
Daniel This is what i did
Private Sub frmSearch_BeforeUpdate(Cancel As Integer)
If optAddress.Value = 1 Then
cboAddress.Visible = False
ElseIf optWorkorder.Value = 2 Then
cboWorkorder.Visible = True
ElseIf optName.Value = 3 Then
cboName.Visible = True
End If
End Sub
Daniel This is what i did
Private Sub frmSearch_BeforeUpdate(Cancel As Integer)
If optAddress.Value = 1 Then
cboAddress.Visible = False
ElseIf optWorkorder.Value = 2 Then
cboWorkorder.Visible = True
ElseIf optName.Value = 3 Then
cboName.Visible = True
End If
End Sub