D
dgodfrey
I have been trying to figure this out and can't seem to find an answer by
searching at the moment.
I have two option groups on my main form. The first is "Person Type". I have
3 checkboxes in the option group. "PersonTypeFrame" is the frame name and
"chkEmployee" (1), "chkPatient" (2), and "chkVisitor" (3) are the 3 options.
What I would like is if the group is null or anything but chkEmployee is
checked, my other option group "EmployeeStatusFrame" will be grayed
out/disabled and also my "txtEmployeeID" text box will be disabled as well.
If the "Employee" option is checked in the first option group I want both of
these controls to be visible and enabled at that time. I have a number data
type for PersonType, EmployeeStatus, and EmployeeID fields in my table.
Here is the code I am playing with for the text box:
Private Sub EmpStatusFrame_AfterUpdate()
If Me.chkEmployee.Enabled = True Then
Me.txtEmployeeID.Enabled = True
Else
Me.txtEmployeeID.Enabled = False
End If
End Sub
Thanks for any help that can be offered. I am sure it is something simple I
have overlooked.
Derek
searching at the moment.
I have two option groups on my main form. The first is "Person Type". I have
3 checkboxes in the option group. "PersonTypeFrame" is the frame name and
"chkEmployee" (1), "chkPatient" (2), and "chkVisitor" (3) are the 3 options.
What I would like is if the group is null or anything but chkEmployee is
checked, my other option group "EmployeeStatusFrame" will be grayed
out/disabled and also my "txtEmployeeID" text box will be disabled as well.
If the "Employee" option is checked in the first option group I want both of
these controls to be visible and enabled at that time. I have a number data
type for PersonType, EmployeeStatus, and EmployeeID fields in my table.
Here is the code I am playing with for the text box:
Private Sub EmpStatusFrame_AfterUpdate()
If Me.chkEmployee.Enabled = True Then
Me.txtEmployeeID.Enabled = True
Else
Me.txtEmployeeID.Enabled = False
End If
End Sub
Thanks for any help that can be offered. I am sure it is something simple I
have overlooked.
Derek