ionutdinulescu
Programmer
I have a listbox on a form and two buttons : Edit and New
When I press them, a form is opened and I can modify the selected record in the list or I can add a new one.
Now when I press Edit, I pass the ID of the current record to the second form. If I press New, a new record is added in the list and I pass it's ID to the form.
I would like to have the possibility to cancel the changes and also cancel the AddNew when I press the cancel button in the second form. Can this be possible ? Maybe I can use a transaction ?!
When I press them, a form is opened and I can modify the selected record in the list or I can add a new one.
Now when I press Edit, I pass the ID of the current record to the second form. If I press New, a new record is added in the list and I pass it's ID to the form.
I would like to have the possibility to cancel the changes and also cancel the AddNew when I press the cancel button in the second form. Can this be possible ? Maybe I can use a transaction ?!