Display different form in a subform based on command button...

scottmfitzge

Registered User.
Local time
Today, 02:26
Joined
Jun 3, 2008
Messages
31
Hi Guys, I am stuck on a subform problem in my DB - I would like to do something but not sure if it is possible - if someone is able to point me in the right direction i would really appreciate it. I would like to set up a subform on the main form of my DB and four command buttons, then dependent on which command button is clicked, i would like a different form to be displayed in the subform. I have created the four forms and placed the four buttons on the main form. I have also created a subform on the main form using the control toolbox - any ideas how i make this work?? Really appreciate any help you can give me here... Thanks Guys...;)
 
On the On Click event of your button add:
Code:
Name_Of_Your_Subform_Control.SourceObject = "Name_Of_Your_Subform"
 
Thanks very much - that works perfectly.... :)
 

Users who are viewing this thread

Back
Top Bottom