hello,
Can somone help me out with .AddNew() and an acecss db?
So far I have several fields bound to an access database with 1 unique autoincrement field (ID). I can navigate the recordset and update records without problem. My question is about the adding of records.
So far I have a button that runs (when you click this there is a short delay)
Me.BindingContext(dsEmployee, "employee").EndCurrentEdit()
Me.BindingContext(dsEmployee, "employee").AddNew()
I don't clear the fields and the existing data stays there. The record count appears to increase. I make some changes then
Me.BindingContext(dsEmployee, "employee").EndCurrentEdit()
odaEmployee.Update(dsEmployee, "employee")
The record only seems to update an existing record. If I close the window and go back to reload the ds, no new record. If I go mad and press add several times and then save, I get a few blank records at the end.
Can somone give me the right way of doing this?
Thanks.
Can somone help me out with .AddNew() and an acecss db?
So far I have several fields bound to an access database with 1 unique autoincrement field (ID). I can navigate the recordset and update records without problem. My question is about the adding of records.
So far I have a button that runs (when you click this there is a short delay)
Me.BindingContext(dsEmployee, "employee").EndCurrentEdit()
Me.BindingContext(dsEmployee, "employee").AddNew()
I don't clear the fields and the existing data stays there. The record count appears to increase. I make some changes then
Me.BindingContext(dsEmployee, "employee").EndCurrentEdit()
odaEmployee.Update(dsEmployee, "employee")
The record only seems to update an existing record. If I close the window and go back to reload the ds, no new record. If I go mad and press add several times and then save, I get a few blank records at the end.
Can somone give me the right way of doing this?
Thanks.