DH
Programmer
- Dec 8, 2000
- 168
I have a main form with 4 subforms on it. When the form loads I would like to display subform1 and hide the rest.
I can do this using Me.subform2.visible=false, etc. on open.
My issue is that the underlying query of each subform is somewhat lenghty and time consuming. Therefore, I do not want to load the query of each hidden subform when the main form is opened.
Four command buttons are present on the main form so that the user can change between subforms. For example, when the user clicks the command button "subform2" I would like to then open subform2 and close any of the remaining subforms that may be open.
Any suggestions on how to accomplish this??
Is there a command or event or something that I can tell the main form to only load subform1 on open and not any other subforms? Then when the user clicks a command button I can unload the subform they are currently on and then load the corresponding subform associated with the command button that the user clicks.
Thanks
Thanks
I can do this using Me.subform2.visible=false, etc. on open.
My issue is that the underlying query of each subform is somewhat lenghty and time consuming. Therefore, I do not want to load the query of each hidden subform when the main form is opened.
Four command buttons are present on the main form so that the user can change between subforms. For example, when the user clicks the command button "subform2" I would like to then open subform2 and close any of the remaining subforms that may be open.
Any suggestions on how to accomplish this??
Is there a command or event or something that I can tell the main form to only load subform1 on open and not any other subforms? Then when the user clicks a command button I can unload the subform they are currently on and then load the corresponding subform associated with the command button that the user clicks.
Thanks
Thanks