P
Pat
I use a form to display a selection of employees that is opened by double
clicking on the employee number field. Once the user clicks on the record
selector (employee form), I set the employee number on the previous form.
That works, but the before_update event is not being fired. If I do not call
the employee form with the double click and just enter a valid employee
number, the event fires normally.
This is the code from the empoyee form:
[Forms]![frmMaintainVPN].EmpNum.Value = Me.EmpNum.Value
DoCmd.Close acForm, Me.Name
I am calling the employee form from the main form with the following code;
Private Sub EmpNum_DblClick(Cancel As Integer)
If (Me.NewRecord) Then
DoCmd.OpenForm "frmListEmployees", acNormal
End If
End Sub
I am open to all suggestions .....
clicking on the employee number field. Once the user clicks on the record
selector (employee form), I set the employee number on the previous form.
That works, but the before_update event is not being fired. If I do not call
the employee form with the double click and just enter a valid employee
number, the event fires normally.
This is the code from the empoyee form:
[Forms]![frmMaintainVPN].EmpNum.Value = Me.EmpNum.Value
DoCmd.Close acForm, Me.Name
I am calling the employee form from the main form with the following code;
Private Sub EmpNum_DblClick(Cancel As Integer)
If (Me.NewRecord) Then
DoCmd.OpenForm "frmListEmployees", acNormal
End If
End Sub
I am open to all suggestions .....