Which page of a tab control has focus?

  • Thread starter Thread starter Ian Turk
  • Start date Start date
I

Ian Turk

Can some one please point me towards a means to determine which page of a
tab control has focus.

I am designing a form to drive preparation of a number of reports. Each page
will represent a different report, and the variables that need to be entered
to specify each report. The code needs to know which report (ie which page)
is active to select the report.

THanks

Ian
 
Check the Value property of the tab control. It'll range from 0 to the
number of visible tabs minus 1 (if you have three visible tabs, the value
will be 0, 1, or 2). The first tab on left is value 0, the next one is value
1, and so on from left to right.
 
THanks Ken,

You have just helped someone in New Zealand, who thought the answer had to
relate to the page index, but couldnt work out how to access it.

Thanks

Ian
 
You're welcome.

--

Ken Snell
<MS ACCESS MVP>

Ian Turk said:
THanks Ken,

You have just helped someone in New Zealand, who thought the answer had to
relate to the page index, but couldnt work out how to access it.

Thanks

Ian


of
 
Back
Top