I currently have a master form that uses multiple subforms by setting their visibility on or off. I have created a reset button that when clicked fires the following code
Private Sub Reset_Click()
DoCmd.Close
DoCmd.OpenForm "MasterForm"
End Sub
The goal is to basically reset everything back to the way it was when I first open the form. And this works..... sort of. When I first click it, the location where the first subform shows up is a white box. If I click the reset button again, then it shows up correctly. What am I missing to make it to where I only have to click the button once to get it to work correctly.
The orange background is the subform
Here is what it looks like after clicking twice Here is what it looks like after clicking once
--------------
Thanks!
Private Sub Reset_Click()
DoCmd.Close
DoCmd.OpenForm "MasterForm"
End Sub
The goal is to basically reset everything back to the way it was when I first open the form. And this works..... sort of. When I first click it, the location where the first subform shows up is a white box. If I click the reset button again, then it shows up correctly. What am I missing to make it to where I only have to click the button once to get it to work correctly.
The orange background is the subform
Here is what it looks like after clicking twice Here is what it looks like after clicking once
Thanks!