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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Events on a tab control 1

Status
Not open for further replies.

GBall

Programmer
May 23, 2001
193
GB
It's late and I guess I've lost it, but I can see events on a selected tab page and I have entered code to act on the event, but the event does not appear to be firing.
All I want to do is set some values when a tab is selected (clicked).
Someone pleae put me out of my misery ?

TIA
Graham B-)
 
Hiya!

I think you should have your code in the On Change event of the Tab Control itself, not on one of the pages. Then when you click a different tab from the one you're on, the event will fire....

Private Sub MyTabCtl_Change()
MsgBox "Tab Changed", vbOKOnly
End Sub

Regards,
pjm
 
Yeh,
I guess that's the way to go.
At least I'm not being too stupid - just another Access 'featurette' !!

cheers,
Graham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top