George-Bowyer
Registered User.
- Local time
- Today, 05:41
- Joined
- Dec 21, 2012
- Messages
- 178
I have a form with a date field, that the user can double click to fill with a certain date.
I then have code in the After Update event of the same field that adds a new record to a table if certain criteria are met.
If I double click the field, it fills as it should and saves the date as it should. However, it does not trigger the After Update event.
If I enter the same date manually that the Double Click event auto fills, the After Update is triggered as it should be.
Can anyone advise why the Double Click seems to be bypassing After Update, please??
This is the code for the Double Click:
Thanks,
George
I then have code in the After Update event of the same field that adds a new record to a table if certain criteria are met.
If I double click the field, it fills as it should and saves the date as it should. However, it does not trigger the After Update event.
If I enter the same date manually that the Double Click event auto fills, the After Update is triggered as it should be.
Can anyone advise why the Double Click seems to be bypassing After Update, please??
This is the code for the Double Click:
Code:
Private Sub FldRetireDate_DblClick(Cancel As Integer)
FldRetireDate = DateSerial(Switch(Month(Date) > 4, Year(Date) + 1, True, Year(Date)), 4, 30)
End Sub
Thanks,
George