brendandaly
Registered User.
- Local time
- Today, 13:33
- Joined
- Apr 29, 2011
- Messages
- 36
I've got two text fields (they have to be text fields as they're in a dbf file) with dates in them in the format "yyyy-mm-dd" and I'm trying to have a message box pop up if one of the fields, lets call it LICEXPDATE, is the same or after the other, NEWEXPDATE. I'm not even sure if I've figured out how to format them correctly so they are recognized as dates. I've got:
Dim LICEXPDATE As Date
Dim NEWEXPDATE As Date
LICEXPDATE = Format(LICEXPDATE, "yyyy-mm-dd")
NEWEXPDATE = Format(NEWEXPDATE, "yyyy-mm-dd")
If LICEXPDATE >= NEWEXPDATE Then
MsgBox ("Updated Expiration Date must be after Original Expiration Date. Please Re-Check.")
Check19 = False
End If
so far. Any help would me greatly greatly appreciated. Thanks in advance.
Dim LICEXPDATE As Date
Dim NEWEXPDATE As Date
LICEXPDATE = Format(LICEXPDATE, "yyyy-mm-dd")
NEWEXPDATE = Format(NEWEXPDATE, "yyyy-mm-dd")
If LICEXPDATE >= NEWEXPDATE Then
MsgBox ("Updated Expiration Date must be after Original Expiration Date. Please Re-Check.")
Check19 = False
End If
so far. Any help would me greatly greatly appreciated. Thanks in advance.