Take a look at CONVERT in books on line. Also create a query in enterprise
manager and specify a where clause for the datetime type and look at the
resulting SQL and all should become somewhat clearer.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Dan" wrote:
| Ok, this is bizare. First off, I'm not really sure where I should be
| executing the function below. VBA doesn't recognize CONVERT, so I'm
assuming
| it should be passed along in the SQL string, but I don't know what the
'102'
| represents.
|
| Also, and here's the strange thing, I got this to work when I use
CDbl(date)
| within VBA and CDbl(Time) EXCEPT that CDbl(date) always returns a date two
| days ahead of today, which means I need to use CDbl(Date)-2. I don't
| understand this.