G
Guest
This code does not seem to trigger. Any ideas why?
The fields are text feilds formatted dd/mm/yy
I assume this may be my problem.
Any recommendations on how I can get this to work?
Private Sub ElecReturnAcknowledgedDate_LostFocus()
' Date validation
If Me.ElecReturnAcknowledgedDate.Value < Me.ElecReturnSubmittedDate.Value Then
MsgBox "Your acknowledgement date is before the submitted date.", _
vbExclamation, "Unexpected data"
End If
End Sub
The fields are text feilds formatted dd/mm/yy
I assume this may be my problem.
Any recommendations on how I can get this to work?
Private Sub ElecReturnAcknowledgedDate_LostFocus()
' Date validation
If Me.ElecReturnAcknowledgedDate.Value < Me.ElecReturnSubmittedDate.Value Then
MsgBox "Your acknowledgement date is before the submitted date.", _
vbExclamation, "Unexpected data"
End If
End Sub