Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null date return from MSSQL
Message
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00441181
Message ID:
00441578
Views:
10
Hi John,

Unfortunately, at this very moment I can't test this solution, but simple test in MS Access produced:

? datevalue("12/01/2000 17:00")
12/1/2000
? datevalue("17:00")
12:00:00 AM

Just my 2 cents.
HTH, Igor


>Thanks Igor. But this still means I have to code similarly right?
>
>If DateValue(RS.Fields("MyDateField")) = ""
> txtShipDate.Value = ""
>Else
> txtShipDate.Value = RS.Fields("MyDateField").Value
>End If
>
>
>
>>
>>Hi John,
>>
>>In VBA you can use function DateValue which gives the date part of the datetime value. Check Date part of the datetime value.
>>
>>HTH, Igor
Igor Gelin
Database Developer
Previous
Reply
Map
View

Click here to load this message in the networking platform