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  

Identify selected tab on tab control



 
 
Thread Tools Display Modes
  #1  
Old August 15th, 2006, 05:17 PM posted to microsoft.public.access.forms
4110
external usenet poster
 
Posts: 24
Default Identify selected tab on tab control

I would like to initiate actions based on which tab is selected on a tab
control. How do I know which tab is clicked?

Thanks
  #2  
Old August 15th, 2006, 06:09 PM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Identify selected tab on tab control

The tab control has a Value indicating which page is active.
It will match the PageIndex of the page.

The tab control's Change event fires when another page is chosen.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"4110" wrote in message
...
I would like to initiate actions based on which tab is selected on a tab
control. How do I know which tab is clicked?

Thanks



  #3  
Old August 16th, 2006, 02:20 PM posted to microsoft.public.access.forms
4110
external usenet poster
 
Posts: 24
Default Identify selected tab on tab control

Allen,

Excellent. Thank you very much. I don't know how I missed it. Instead I
zeroed in on the click event and thought that it should fire when I clicked
on a different tab. Anyway you have me going forward.

Thanks again.


"Allen Browne" wrote:

The tab control has a Value indicating which page is active.
It will match the PageIndex of the page.

The tab control's Change event fires when another page is chosen.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"4110" wrote in message
...
I would like to initiate actions based on which tab is selected on a tab
control. How do I know which tab is clicked?

Thanks




 




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 10:26 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.