Error by inserting a Date - DataSet

Discussion in 'ASP .Net' started by Carlos A., Aug 26, 2006.

  1. Carlos A.

    Carlos A. Guest

    Hello all
    (VB - SQL Server 2005)
    I create a DataSet with the insert, update, fill... functions.
    I have a problem when I try to insert a DateTime field only when it's empty,
    I have the error message:
    It's not possible to convert string to Date.
    Normally when CustomerDate is not empty I convert the value with Cdate( ).
    My question is: How can I insert a empty value in this field?

    Thanks a lot
     
    Carlos A., Aug 26, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    605
    Matthew Speed
    Nov 8, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,271
    Michael Borgwardt
    May 30, 2004
  3. Matt
    Replies:
    2
    Views:
    519
    Pete Becker
    Nov 8, 2003
  4. Matt
    Replies:
    3
    Views:
    723
    Richard Heathfield
    Nov 8, 2003
  5. Matt
    Replies:
    11
    Views:
    407
    Aaron Bertrand [MVP]
    Nov 8, 2003
Loading...

Share This Page