Tab Control

J

Jeroen Verdrengh

Hi,

I have a tabcontrol (consisting of several tabpages) and I'd like to do sth.
when a certain tab is clicked. I use TabControl.onChange as a trigger but
how can I find out which tab has been clicked? I'm looking to sth. like
"currentTabControlIndex".

thanks!

Une-V
 
T

Todd Lemen

One approach: Set an integer equal to Forms![Your Form
Name]!tabcontrol (assuming your tab control is
names "tabcontrol"). When a user clicks a tab, the
integer will be set to the index number of the selected
tab page.
-----Original Message-----
Hi,

I have a tabcontrol (consisting of several tabpages) and I'd like to do sth.
when a certain tab is clicked. I use
TabControl.onChange as a trigger but
 
R

Rick Brandt

Jeroen Verdrengh said:
Hi,

I have a tabcontrol (consisting of several tabpages) and I'd like to do sth.
when a certain tab is clicked. I use TabControl.onChange as a trigger but
how can I find out which tab has been clicked? I'm looking to sth. like
"currentTabControlIndex".

Use the TabControl's Value property. It will correspond to the page index
of the current page.
 
Top