Expand|Select|Wrap|Line Numbers
- trns_dt = DateTime.Now.Date
But when I fetch records from the tableand assign the dataset datasource as da, it shows datatype mismatch error.
Expand|Select|Wrap|Line Numbers
- 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()