jammin140900
Registered User.
- Local time
- Tomorrow, 00:30
- Joined
- Aug 18, 2008
- Messages
- 35
Hi All,
I have some data validation for some date fields as listed below. This method works fine but the only thing is by using Me.FileCompleteDate = " " , the cursor moves along straight away to the next field instead of sticking to the same field and allowing the user to input the correct date. Is their a way around this please?
Regards
J
Private Sub FileCompleteDate_AfterUpdate()
If Me.FileCompleteDate < Me.ApplicationReceivedDate Then
MsgBox "File Complete Date must be greater than Application Received Date", vbCritical + vbOKOnly, "Date Validation Error"
Me.FileCompleteDate = ""
End If
End Sub
Private Sub FileCompleteDate_Change()
If Me.FileCompleteDate < Me.ApplicationReceivedDate Then
MsgBox "File Complete Date must be greater than Application Received Date", vbCritical + vbOKOnly, "Date Validation Error"
Me.FileCompleteDate = ""
End If
End Sub
I have some data validation for some date fields as listed below. This method works fine but the only thing is by using Me.FileCompleteDate = " " , the cursor moves along straight away to the next field instead of sticking to the same field and allowing the user to input the correct date. Is their a way around this please?
Regards
J
Private Sub FileCompleteDate_AfterUpdate()
If Me.FileCompleteDate < Me.ApplicationReceivedDate Then
MsgBox "File Complete Date must be greater than Application Received Date", vbCritical + vbOKOnly, "Date Validation Error"
Me.FileCompleteDate = ""
End If
End Sub
Private Sub FileCompleteDate_Change()
If Me.FileCompleteDate < Me.ApplicationReceivedDate Then
MsgBox "File Complete Date must be greater than Application Received Date", vbCritical + vbOKOnly, "Date Validation Error"
Me.FileCompleteDate = ""
End If
End Sub