BabyPowder2u
Programmer
I am trying to set up control which will display one field or another based on an option button.
I created a frame called "Selection" and placed two option buttons in it.
I get an error no matter how I try to refer to the buttons (the below code gives error "Compile error: Variable not defined" and points to "Option1"
If Option1.Value = True Then
cboRoomName.Visible = False
Label6.Caption = "Room Type:"
cboRmType.Visible = True
Else
If Option2.Value = True Then
cboRoomName.Visible = True
Label6.Caption = "Room Name:"
cboRmType.Visible = False
cboRmType.Value = cboRoomName(1)
End If
End If
Can someone please show me the error of my ways
Thanks,
T
I created a frame called "Selection" and placed two option buttons in it.
I get an error no matter how I try to refer to the buttons (the below code gives error "Compile error: Variable not defined" and points to "Option1"
If Option1.Value = True Then
cboRoomName.Visible = False
Label6.Caption = "Room Type:"
cboRmType.Visible = True
Else
If Option2.Value = True Then
cboRoomName.Visible = True
Label6.Caption = "Room Name:"
cboRmType.Visible = False
cboRmType.Value = cboRoomName(1)
End If
End If
Can someone please show me the error of my ways
T