Results 1 to 4 of 4

Thread: NULL to Datetime in MSAccess

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Location
    india
    Posts
    26

    Thumbs up 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

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    First check that zero length strings a/o Nulls are allowed in the field in Access.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Location
    india
    Posts
    26

    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?

  4. #4
    Addicted Member
    Join Date
    Sep 2004
    Location
    Brooklyn
    Posts
    147
    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
  •  



Click Here to Expand Forum to Full Width