I have a field on a form called ActiveXCtl42 to choose the date and I want it to update a field called "WeekEnding".
The choose date field is using MCConCtl.DTpicker.
"WeekEnding" is a date field.
I used the code:
Private Sub ActiveXCtl42_LostFocus()
[WeekEnd] = ActiveXCt142
[WeekBegin] = [WeekEnd] - 6
End Sub
It does update the field but the date is always: "31-Dec-99".
The choose date field is using MCConCtl.DTpicker.
"WeekEnding" is a date field.
I used the code:
Private Sub ActiveXCtl42_LostFocus()
[WeekEnd] = ActiveXCt142
[WeekBegin] = [WeekEnd] - 6
End Sub
It does update the field but the date is always: "31-Dec-99".