Opening subforms with command control

vX987

Registered User.
Local time
Today, 12:46
Joined
Jun 29, 2007
Messages
51
Hi. I'm not sure if this is possible, but ...

I'd like to create a form (MAIN FORM) where I'll have two command buttons labeled FORM 1 and FORM 2 and then a wide empty space below it.

What I want to happen is: everytime I open the MAIN FORM, FORM 1 will be visible in that empty space (as a subform), but when I click on the FORM 2 command .. FORM 2 will open in place of FORM 1 (instead of opening as a pop-up or opening as a separate whole form).... kind of like a tab form. I didn't want to use a tab form because I wanted to set different background colors to each form.

Is it do-able? If so, help please? Thank you much!
 
Hi,

try using the visible property on the OnClick event so that you will set the visible to true or false depending which button is clicked.
 
Ooo awesome! I should've thought of that :)

Thank you .. I will test it out.
 
simple, EASY .. no complicated codings! Works great, thanks!
 

Users who are viewing this thread

Back
Top Bottom