Save Data Field in an Access database

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?ISO-8859-1?Q?Josep_M=AA_Puigdollers?=

    Save Data Field in an Access database

    I'm trying to save a Date into an Access database. I'm using a dataset
    with only one table, and that table has only two fields: a string and
    a date field.
    My code is similar to this:

    strValue = "my string content"
    dateValue = #01/31/2008#
    newRow = myDatatable.New Row()
    newRow.BeginEdi t()
    newRow("StringF ield") = strValue
    newRow("DateFie ld") = dateValue
    myDatatable.Row s.Add(newRow)
    newRow.EndEdit( )
    myDataAdapter.U pdate(myDataTab le)


    in my Access database only is save the string field but not the data
    field.

    What I am doing wrong?

    Thanks to everybody
Working...