|
Prev: vb.Net: Running Process: how to retrieve the command line it is executing?
Next: VB.Net progam the selecting of a row of a DataGridView
From: Josep MÂȘ Puigdollers on 21 Jul 2008 13:43 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.NewRow() newRow.BeginEdit() newRow("StringField") = strValue newRow("DateField") = dateValue myDatatable.Rows.Add(newRow) newRow.EndEdit() myDataAdapter.Update(myDataTable) in my Access database only is save the string field but not the data field. What I am doing wrong? Thanks to everybody |