A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I add tab controls to a form



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2009, 07:46 PM posted to microsoft.public.access.forms
Jo
external usenet poster
 
Posts: 508
Default how do I add tab controls to a form

How do I add tabs to forms? I would like to a have a form that has 2 other
tabs that lead to other forms that should be linked together.
  #2  
Old April 30th, 2009, 08:38 PM posted to microsoft.public.access.forms
Maurice
external usenet poster
 
Posts: 1,585
Default how do I add tab controls to a form

Put the form in designview and look in the menubar for the toolbox which has
a button on it which says tabcontrol click on it once and then click on your
form. This should place a tabcontrol with two tabs on your form.
--
Maurice Ausum


"jo" wrote:

How do I add tabs to forms? I would like to a have a form that has 2 other
tabs that lead to other forms that should be linked together.

  #3  
Old April 30th, 2009, 10:01 PM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default how do I add tab controls to a form

Just to add to Maurice's advice, here's a quick little tutorial I give people
on the use of Tabbed Pages. It addresses some of the common problems
experienced with them:

First thing to remember is that the Tabbed Pages are all part of a single
form; think of it as a really long form turned on its side. Because it is all
one form, all referencing to any control on it is done in the same manner as
if they were all on one single screen. Create a form in Design View. Goto the
toolbox and click on the Tabbed Control icon; it actually looks like several
manila file folders. Place it on your form and adjust the size to your liking.
If you need more than the two tabbed pages it initially gives you, click on
the tabbed control to select it. Goto Insert and click on Tabbed Control Page
and another tabbed page will be added. Do this as many times as necessary.

This is the really important part: when you go to add a control to a tabbed
page, whether it be a textbox, command button or subform, you must first
click to select one of the pages, then add the control. Otherwise, the
control will be added to the form itself, and will show thru on all tabbed
pages! If a single page has been selected, when your cursor carrying the
control appears over the page, a black "insert" will appear.

Once you have the form's Control Source (your table or a query) set up, you
simple add controls as you normally would, heeding the above paragraph.

Also important to understand! If you go to move a control from one part of
your main form to a tabbed page, you cannot drag and drop it! You must cut it,
select the tabbed page, then paste it! And if the control has any code behind
it, a GotFocus, OnClick, etc, after dropping it on the tabbed page, you'll
have to "re-connect" it to its code. Select the control, goto Properties,
click to the right of [Event Procedure] on whatever event to bring up the
ellipsis (...) then click it to go to the code window. Exit the code editor
and the control and its event code will be connected.

One last thing. When trying to access the Properties of the Tabbed Control,
such as the BackStyle, people complain that they can't find property. The
problem is that they haven't selected the Tabbed Control, they've selected
one of the pages of the Tabbed Control! The best way to be sure of selecting
the Tabbed Control itself is to click to the right of the last tab. If you
have 2 tabs, for instance, click in the blank area where Tab 3 would be, if
you had a Tab 3.

Maurice wrote:
Put the form in designview and look in the menubar for the toolbox which has
a button on it which says tabcontrol click on it once and then click on your
form. This should place a tabcontrol with two tabs on your form.
How do I add tabs to forms? I would like to a have a form that has 2 other
tabs that lead to other forms that should be linked together.


--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200904/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.