Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab page event

Status
Not open for further replies.

Rajesh99

Programmer
Mar 17, 2003
43
US
I want to processs some code when tab page is selected. I used 'On Click' event that seems to work fine if I click in the middle of tab page. But users will click on the little thumb nail to select a tab and this event does not seem to fir at that time. What other things can I do to accomplish that considering that users may even not use a mouse to select a tab, they may us a key stroke..
 
use the Tab Control's On Change Event and check the Tab Control's value, it will return the Page Index #

PaulF
 
Any other way, seems if someone goes and inserts a new page in there this may break the code as index will vary?
 
How are ya Rajesh99 . . . . .

Yoyu don't have to worry about the Tab Index, thats another line of code.
Microsoft said:
[blue]The [purple]Change Event[/purple] occurs when you move from one page to another page[/blue]
Perhaps if you explain what your code accomplishes, we can better advise/serve you . . . . .

Calvin.gif
See Ya! . . . . . .
 
Thanks. The code really inserts a record in a database table, every time someone goes to this tab. I have a tabbed form tha holds a number for form in each tab page. Looking for a way to do this in access, if possible without hardcoding any tab index # etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top