I am interested to know if there is a better way of doing the the following updates.
I have the following fields on my form. They could be Null or have previous values.
HPAprroval - Verbal, Pending or Approved (Yes I know when I created my table I had a typo on the field name)
HRApprovalReqDate
HRApprovalDate.
If I change the HRApprovalReqDate I want it to change the HRAprroval to "Prending" and set the HRApproval date to NULL
When I enter a date in the HRAppoval date it will then change HRAprroval to "Approved".
On the AfterUpdate event of HRApprovalReqDate I have the following code.
Private Sub HRApprovalReqDate_AfterUpdate()
Me.HRAprroval.Value = "Pending"
Me.HRApprovalDate.Value = ""
End Sub
This works
In the AfterUpdate event of HRApprovalDate I have the following.
Private Sub HRApprovalDate_AfterUpdate()
Me.HRAprroval = "Approved"
End Sub
This also works but I am wondering if there is a better way to accompish these changes. One problem I can see is if I need to just wipe out the Approval date for what ever reason it then always change my HRApproval to Approve.
There might be an instance where my HRApproval is set to "Pending", if I remove the approval date it will then change HRP Approval to Approved when it needs to stay as Pending.
Thanks in advance for your repsonses.
Vito