I've created an overview form witrh a list of customers. When the user wants to add a new customer, i use the addnew() function.
In the "add" screen an empty card is shown to be filled in by the user. When entering the new data, the primary key (auto number) stays -1? I thought it would change when the form is dirty?
I use NET 4.0 on a Access db. The CustomerID is primary key and auto number.
On the overview screen (after refresh) it is shown correctly.
Why doesn't the ID on my add form change to the new ID?
In the "add" screen an empty card is shown to be filled in by the user. When entering the new data, the primary key (auto number) stays -1? I thought it would change when the form is dirty?
I use NET 4.0 on a Access db. The CustomerID is primary key and auto number.
On the overview screen (after refresh) it is shown correctly.
Why doesn't the ID on my add form change to the new ID?