I'v designed a ms access database table with one field having Datetime datatype. I can Insert data into it from vb.net front end by using
.
But when I fetch records from the tableand assign the dataset datasource as da, it shows datatype mismatch error.
Plz help ASAP
Code:
trns_dt = DateTime.Now.Date
But when I fetch records from the tableand assign the dataset datasource as da, it shows datatype mismatch error.
Code:
da = New OleDbDataAdapter("Select * from Daily_Transaction where trans_date between '" & dtp_from_dt.value & "' and '" & dtp_To.value & "' ", con)
ds = New DataSet
ds.Clear()
da.Fill(ds, "Daily_Transaction")
DGV_Admin.DataSource = ds.Tables(0)
DGV_Admin.Show()
Comment