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