Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DISPLAY LAYERED (HIDDEN) FORMS 1

Status
Not open for further replies.

barry2004

Technical User
Oct 13, 2004
42
GB
Hi guys i have a problem but one which i believed you have encountered and answered before.
I wish to create a form (frm_lapstock) which has buttons on one side which when clicked on would open and display other existing forms on the right-hand side of this new form. See :-


The available forms are called: frm_available, frm_unavailable, frm_summary and frm_bookings.

The buttons would open/display whichever one of the forms they are linked to on the right side. By the way, whatever form is linked to button1 would be the default form displayed whenever "frm_lapstock" is opened.
 
you mean a tabbed control on a form with a subform on it?

--------------------
Procrastinate Now!
 
Create each of the subforms and put them on the right-hand side of the main page where your buttons reside. Set the subform control for button 1 as visible=true and all the others as visible=false.

Using the code for each button, set the appropriate subform control visible=true and all others visible=false, like:

Button4_OnClick
Me.SubForm1.Visible = False
Me.Subform2.Visible = False
Me.Subform3.Visible = False
Me.Subform4.Visible = True

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top