G
Guest
I have a very complex form with many different users changing and updating
the records in a network. My ambition is to logg the employee who made the
latest change to the record and to set the date of when the last change
occured.
With the below code it is still possible for the user to ignore my logging
ambititions
and leave the form without entering his name in the listbox for employee.
The date is set anyway.
What I want to do is to lock to the form on the current record until the
listbox for emloyee has been changed
I have this code below running on the forms before update event.
Thank you in advance
Mattias
Private Sub Form_BeforeUpdate(Cancel As Integer)
Forms!OBJEKTREGISTRERING!DateLatestChange = Date
cboEmployee2.BackColor = vbYellow
Employee1Name.BackColor = vbYellow
DoCmd.GoToPage (3)
DoCmd.GoToControl "cboEmployee2"
End Sub
the records in a network. My ambition is to logg the employee who made the
latest change to the record and to set the date of when the last change
occured.
With the below code it is still possible for the user to ignore my logging
ambititions
and leave the form without entering his name in the listbox for employee.
The date is set anyway.
What I want to do is to lock to the form on the current record until the
listbox for emloyee has been changed
I have this code below running on the forms before update event.
Thank you in advance
Mattias
Private Sub Form_BeforeUpdate(Cancel As Integer)
Forms!OBJEKTREGISTRERING!DateLatestChange = Date
cboEmployee2.BackColor = vbYellow
Employee1Name.BackColor = vbYellow
DoCmd.GoToPage (3)
DoCmd.GoToControl "cboEmployee2"
End Sub