|
-
Sep 9th, 2004, 11:56 AM
#1
Thread Starter
Junior Member
NULL to Datetime in MSAccess
hi,
how doi insert a null value to a datetime field in MS Access table? an empty string and NULL are not accepted.
how do i update the already set date value of a datetime filed to null ?
pls let me know soon ,
Regards
sanjays
-
Sep 9th, 2004, 01:14 PM
#2
Frenzied Member
First check that zero length strings a/o Nulls are allowed in the field in Access.
-
Sep 9th, 2004, 01:20 PM
#3
Thread Starter
Junior Member
null in mdb
allow zero length is not available for a datetime field in mdb.
can i get a null value or zerolength string from the field?
-
Sep 9th, 2004, 01:29 PM
#4
Addicted Member
Access datetime fields must allow nulls. You can test for IsNull and you can SET field = NULL.
One problem you can potentially have is that the OLE DB driver might treat "empty" date fields differently - for example the Visual Foxpro OLE DB driver passes "empty" date fields to vb.net as "12/31/1899". Boy did that one cause a headache.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|