Full Version: Using Command Button To Hide Subform
UtterAccess Forums > Microsoft® Access > Access Forms
I have a form with a subform on it. The subform has lots of fields to fill with data so I have a command button on the main form to open the subform when I click the button. I then want to enter the data on the subform and put a command button on the subform to hide it when I am fininshed entering the data and go back to the main form. What coding would I use to do this or is there an easier way to do this?
You can use this in a button on the main form
e.YourButton.SetFocus ' just to ensure that the subform has been exited, which it should if you click the button
Me.YourSubformControlName.Visible = False
(you refer to the control on the main form that houses the subform and not the subform itself)
Thanks for your help, Bob.
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.