dbTalk Databases Forums  

Possible to tell which page is the active page of a tab control (A2003)??

comp.databases.ms-access comp.databases.ms-access


Discuss Possible to tell which page is the active page of a tab control (A2003)?? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PW
 
Posts: n/a

Default Possible to tell which page is the active page of a tab control (A2003)?? - 10-20-2011 , 01:54 PM






I would like to use a tab control but I need to know which page/tab
has been selected. Which one is the active tab.

I don't see a property for this.

Is there one or do I have to populate a variable when the user clicks
on a page tab?

Reply With Quote
  #2  
Old   
PW
 
Posts: n/a

Default Re: Possible to tell which page is the active page of a tab control (A2003)?? - 10-20-2011 , 02:05 PM






On Thu, 20 Oct 2011 12:54:19 -0600, PW
<emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Quote:
I would like to use a tab control but I need to know which page/tab
has been selected. Which one is the active tab.

I don't see a property for this.

Is there one or do I have to populate a variable when the user clicks
on a page tab?

Nevermind. I put a checkbox on each page for the user to select if
they want controls on that page processed.

Reply With Quote
  #3  
Old   
Tony Toews
 
Posts: n/a

Default Re: Possible to tell which page is the active page of a tab control (A2003)?? - 10-22-2011 , 04:58 PM



On Thu, 20 Oct 2011 12:54:19 -0600, PW
<emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Quote:
I would like to use a tab control but I need to know which page/tab
has been selected. Which one is the active tab.

I don't see a property for this.

Is there one or do I have to populate a variable when the user clicks
on a page tab?
It took a while searching through the help before I found the relevant
sentence.

"The Value property of the tab control is equal to the PageIndex
property of the current page. You can use these properties to
determine which page is currently selected after the user has switched
from one page to another, or to change the order in which the pages
appear in the control."

For example

forms!form1!tabctl20.value
or
me.tabctl20.value

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/

Reply With Quote
  #4  
Old   
PW
 
Posts: n/a

Default Re: Possible to tell which page is the active page of a tab control (A2003)?? - 10-26-2011 , 12:02 PM



On Sat, 22 Oct 2011 15:58:26 -0600, Tony Toews
<ttoews (AT) telusplanet (DOT) net> wrote:

Quote:
On Thu, 20 Oct 2011 12:54:19 -0600, PW
emailaddyinsig (AT) ifIremember (DOT) com> wrote:

I would like to use a tab control but I need to know which page/tab
has been selected. Which one is the active tab.

I don't see a property for this.

Is there one or do I have to populate a variable when the user clicks
on a page tab?

It took a while searching through the help before I found the relevant
sentence.

"The Value property of the tab control is equal to the PageIndex
property of the current page. You can use these properties to
determine which page is currently selected after the user has switched
from one page to another, or to change the order in which the pages
appear in the control."

For example

forms!form1!tabctl20.value
or
me.tabctl20.value

Tony

Thanks Tony. I saw the topic on PageIndex but didn't think it was
relevant (or something like that).

-paul

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.