Hi,
I have a form that contains text boxes that are bound to a table. When I enter new data in the text box, the database automatically adds the new data to the table. After reading Pat Harman's solution, I thought the best way to fix this problem was to, when the form is loaded, store all the variables and if the user clicks cancel, I restore the original values on the screen and save.
I have 2 buttons on the screen, cancel and save. The menu and all menu buttons have been removed so these are the only buttons available to the user.
This works fine but the code is not reusable for multiple forms.
Does anyone have any ideas as to how to make a procedure out of this? I have about 30 forms that work this way and I was wondering if it was possible to make a procedure that would get all the information in the text boxes, store them in an array and when needed, restore them to the current form.
I have a form that contains text boxes that are bound to a table. When I enter new data in the text box, the database automatically adds the new data to the table. After reading Pat Harman's solution, I thought the best way to fix this problem was to, when the form is loaded, store all the variables and if the user clicks cancel, I restore the original values on the screen and save.
I have 2 buttons on the screen, cancel and save. The menu and all menu buttons have been removed so these are the only buttons available to the user.
This works fine but the code is not reusable for multiple forms.
Does anyone have any ideas as to how to make a procedure out of this? I have about 30 forms that work this way and I was wondering if it was possible to make a procedure that would get all the information in the text boxes, store them in an array and when needed, restore them to the current form.