It takes two forms to be able to enter all the info on a particular transaction. I want to be able to flip back and forth between these two forms retaining what was entered on each until the 'Save' button is clicked. I think I should be able to use Form2.Show, Me.Hide and then Form1.Show, Me.Hide.
The first time I try to go back to Form1 from a ‘Back’ button on Form2 the information previously entered on Form1 has disappeared. Why? However, if I fill it in again, go to Form2, and then click the ‘Back’ button again the info is retained.
Obviously the code that is being executed when I click the ‘Back’ button on Form2 the second time is different than the code that is executed the first time I click that same button. How can this be?
For days I’ve been trying to understand this. I’ve commented out nearly every line of code, stepped thru code, googled till I’m blue in the face (there has been a lot written about this), and I still can’t figure out why this behavior occurs.
Can anyone explain this phenomenon? I can devise some workaround by storing data in globals and repopulating controls but this is a lot of work that should be unnecessary.