Datagrid wont set current Time in DefaultValue
Hi,
I'm try'ing to get the time in a field in a datagrid. It shoul be the time of inserting the record. When i use the defaultvalue of the grid it puts the time of creating the grid in the field.
conn = OpenOleDbConnection(_DbPath & "\RegLoBe.mdb")
'Set the DataAdapter's query.
da = New OleDbDataAdapter("Select * from Proef ", conn)
cb = New OleDbCommandBuilder(da)
ds = New DataSet()
' Fill the DataSet.
da.FillSchema(ds, SchemaType.Source, "Proef")
da.Fill(ds, "Proef")
ds.Tables("Proef").Columns("PR_Time").DefaultValue = Now.TimeOfDay
Every record i add has the same time, what do i have to do to ?
In VB6 there where a lot of events BeforUpdate, AfterUpdate etc, what to use now?
Fred