D
Dee
I would like the employee end date field to be invisible if it is null or
active, and visible if it is inactive. It works as it is below but I want it
to be specific to the record (employee) they are on (autonumber =
autonumber)? Also, I want to add a "is not null" statement but dont know the
code or exactly where to place it. I have read other posts but still need
some assistance. Thank you in advance.
Private Sub EmployeeStatus_AfterUpdate()
If Me.EmployeeStatus = "Inactive" Then
Me.EmpEndDate.Visible = True
Else
Me.EmployeeStatus = "Active"
Me.EmpEndDate.Visible = False
End If
End Sub
active, and visible if it is inactive. It works as it is below but I want it
to be specific to the record (employee) they are on (autonumber =
autonumber)? Also, I want to add a "is not null" statement but dont know the
code or exactly where to place it. I have read other posts but still need
some assistance. Thank you in advance.
Private Sub EmployeeStatus_AfterUpdate()
If Me.EmployeeStatus = "Inactive" Then
Me.EmpEndDate.Visible = True
Else
Me.EmployeeStatus = "Active"
Me.EmpEndDate.Visible = False
End If
End Sub