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  

Tab Control Tabs



 
 
Thread Tools Display Modes
  #1  
Old January 28th, 2009, 07:36 PM posted to microsoft.public.access.forms
AEROTJK
external usenet poster
 
Posts: 4
Default Tab Control Tabs

When building a tab control, is there an option to have the tabs on the
bottom, sides of the control instead of the only the top?
  #2  
Old January 28th, 2009, 07:54 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Tab Control Tabs

No, there isn't. (At least, not with the tab control built into Access.
There may be 3rd party tab controls you could buy to use instead)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"AEROTJK" wrote in message
...
When building a tab control, is there an option to have the tabs on the
bottom, sides of the control instead of the only the top?



  #3  
Old January 28th, 2009, 09:16 PM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Tab Control Tabs

A workaround would be, in Design View, to design each page like you want it
to look. You need to do this, because after the next step, the tabs disappear
in Design View as well as when the form is run, and changing them in Design
View is impossible. If you make a mistake, you can always change the Style
back to Tabs temporarily.

Next, select the tabbed control (the entire control, not one of the tabbed
pages) and goto Properties - Format and set the Style Property to "None."

Next, create your own command buttons, placed wherever you want them.

In code behind the command buttons, use code like this

Private Sub Page1_Click()
Me.YourTabControlName = 0
End Sub

Private Sub Page2_Click()
Me.YourTabControlName = 1
End Sub

and so forth. Notice that the Values for pages is Zero-based, so for Page1
you use 0, for Page2 you use 1, etc.

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

Answers/posts based on Access 2000/2003

Message posted via http://www.accessmonster.com

  #4  
Old January 29th, 2009, 03:02 AM posted to microsoft.public.access.forms
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Tab Control Tabs

"Linq Adams via AccessMonster.com" u28780@uwe wrote in
news:90e07ef975751@uwe:


A workaround would be, in Design View, to design each page like
you want it to look. You need to do this, because after the next
step, the tabs disappear in Design View as well as when the form
is run, and changing them in Design View is impossible. If you
make a mistake, you can always change the Style back to Tabs
temporarily.

Next, select the tabbed control (the entire control, not one of
the tabbed pages) and goto Properties - Format and set the Style
Property to "None."

Next, create your own command buttons, placed wherever you want
them.

In code behind the command buttons, use code like this

Private Sub Page1_Click()
Me.YourTabControlName = 0
End Sub

Private Sub Page2_Click()
Me.YourTabControlName = 1
End Sub

and so forth. Notice that the Values for pages is Zero-based, so
for Page1 you use 0, for Page2 you use 1, etc.


Actually, an option group with toggle buttons is a better choice
than individual command buttons, and then you can assign the tab
values to the options, and in the AfterUpdate use:

Me!ctlTab = me!optTab

I've done this many times.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 




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 08:34 AM.


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