ChrisJackson
Jan 12th, 2000, 10:45 PM
Hi.
My program has two Forms. Choosing an option on Form1 brings up Form2. When I go to the second Form, enter some data and click "Cancel", I go back to the first Form with "Me.Hide" and "Form1.Show".
However, when I go Form2 again, all of the values that were entered previously are still there. I want the controls to reset to their default value when I click "Cancel" on Form2. In other words, I want the controls to have the values that they would have if I was opening the Form for the first time.
I know that I can reset the value for each control individually upon clicking "Cancel", but I was wondering if there was an easier way to do this. Any suggestions?
Thanks.
Chris
My program has two Forms. Choosing an option on Form1 brings up Form2. When I go to the second Form, enter some data and click "Cancel", I go back to the first Form with "Me.Hide" and "Form1.Show".
However, when I go Form2 again, all of the values that were entered previously are still there. I want the controls to reset to their default value when I click "Cancel" on Form2. In other words, I want the controls to have the values that they would have if I was opening the Form for the first time.
I know that I can reset the value for each control individually upon clicking "Cancel", but I was wondering if there was an easier way to do this. Any suggestions?
Thanks.
Chris