C
chetna k via AccessMonster.com
I am in trouble in comparing two dates:
as I wrote code as
If (Format(Me![Delivery Timescales], "short date") < Format(Now(), "short
date")) Then
MsgBox "Please enter Requested Start date as current date
or any future date", vbCritical
End If
where [Delivery Timescales] is a Text Box and the whole code has been written
on the click of a button.
The Error I am getting is the If condition is coming false as I entered
31/12/2004 in [Delivery Timescales] text box.
Can anybody help?
Thanks in advance.
as I wrote code as
If (Format(Me![Delivery Timescales], "short date") < Format(Now(), "short
date")) Then
MsgBox "Please enter Requested Start date as current date
or any future date", vbCritical
End If
where [Delivery Timescales] is a Text Box and the whole code has been written
on the click of a button.
The Error I am getting is the If condition is coming false as I entered
31/12/2004 in [Delivery Timescales] text box.
Can anybody help?
Thanks in advance.