I am not sure why anyone would want to write code that was so indeterminate,
even if Visual Basic allowed it. :-)
AFAIK, there is no function available to test a date as a double.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
*************************************************
Think outside of the box!
*************************************************
"Larry Rebich" <lr*****@earthlink.netwrote in message
news:UH*****************@newsread1.news.pas.earthl ink.net...
In VB6 I could do something like:
If dMyDate<=2 Then
would return true if the date was not a recent date.
How can I do this in VB2005?
I've tried Cdbl(dMyDate)<=2 but I get an error message telling me I can't
do this 'cast'.
I've tried Google but can't find any examples.
Larry Rebich