date check problem

partizan82

Registered User.
Local time
Today, 10:53
Joined
May 23, 2002
Messages
17
How do i check if variable's value is zero for date type?

i tried this but it does not work:

if me!DateFromControl.value <> 0 then
blah... blah...
end if

gives me an error... Please help.. any suggestions will be appreciated. Thanks.
 
Try this:

If (IsDate(me![DateFromControl]) Then
' it is a valid date
Else
' it is not a valid date
End If

RichM
 
Thanks, i already found an answer... zero value for date type is #12:00:00 AM#... that's all i needed to know basically... and my query works now....!!!
smile.gif


thanks anyway
 

Users who are viewing this thread

Back
Top Bottom