I put the following code in the before update subroutine of my form's textbox:
If Me.STATUS_DATE.Value = "06/06/2079" Then 'display message box, added by DEK 04/27/2007, for checking that the entered date is in short date range
MsgBox "Is this the status/term date when the employee status is being changed?", vbYesNo + vbDefaultButton1 + vbDefaultButton2
End If
If Me.STATUS_DATE.Value >= "06/07/2079" Then 'display message box, added by DEK 04/27/2007, to see if the entered date is outside of short date range
MsgBox "Your entry was an invalid date! Insert Cancelled, enter the change date in the following format: 00/00/0000"
Cancel = True
Me.STATUS_DATE.Value = datStatusDate
End If
Else
If Me.STATUS_DATE.Value = Now() Then 'Inputs the current system date/time
End If
Can anybody tell me why I'm getting this message? Thanks in advance!
If Me.STATUS_DATE.Value = "06/06/2079" Then 'display message box, added by DEK 04/27/2007, for checking that the entered date is in short date range
MsgBox "Is this the status/term date when the employee status is being changed?", vbYesNo + vbDefaultButton1 + vbDefaultButton2
End If
If Me.STATUS_DATE.Value >= "06/07/2079" Then 'display message box, added by DEK 04/27/2007, to see if the entered date is outside of short date range
MsgBox "Your entry was an invalid date! Insert Cancelled, enter the change date in the following format: 00/00/0000"
Cancel = True
Me.STATUS_DATE.Value = datStatusDate
End If
Else
If Me.STATUS_DATE.Value = Now() Then 'Inputs the current system date/time
End If
Can anybody tell me why I'm getting this message? Thanks in advance!