good,
i am having trouble on how to insert record date in my access db. i am using hdate as my field and his data type is short date
here is my code
cmd.CommandText = "INSERT INTO hold ([hdate], des) VALUES (#" & myDate & "#, '" & TextBox1.Text & "')"
cmd.CommandText = "INSERT INTO hold ([hdate], des) VALUES (#" & datetimepicker1.text & "#, '" & TextBox1.Text & "')"
cmd.CommandText = "INSERT INTO hold ([hdate], des) VALUES (#" & DateTimePicker1.Value.Date.ToShortDateString & "#, '" & TextBox1.Text & "')"
but none of them insert on the table. the record will view on the datagrid but not on the physical table.
can someone show me the right codes here...
thanks