G
Guest
Hello,
I have a combobox ('sexcode', in this example) that if 'f' (for 'female') is
chosen, I want to gray out a frame that holds an Option Group. I want to
also gray out an Unbound label ('Label8' , in this example) next to the
Option group. The following code grays out the Option group, but gives me an
error for the Label. I'm a VB novice, so how can I tweak this to also gray
out the Label?
Dim sexcode As String
If sexcode = f Then
Label8.Enabled = False
Me!Frame9surg_sterl.Enabled = False
Else
Me!Frame9surg_sterl.Enabled = True
End If
I have a combobox ('sexcode', in this example) that if 'f' (for 'female') is
chosen, I want to gray out a frame that holds an Option Group. I want to
also gray out an Unbound label ('Label8' , in this example) next to the
Option group. The following code grays out the Option group, but gives me an
error for the Label. I'm a VB novice, so how can I tweak this to also gray
out the Label?
Dim sexcode As String
If sexcode = f Then
Label8.Enabled = False
Me!Frame9surg_sterl.Enabled = False
Else
Me!Frame9surg_sterl.Enabled = True
End If