Tab Control

T

TC

I don't have Access here to check, but I think the value of the tab control,
is the index of the current page that is displayed. Can't remember whether
the index starts at zero, or one. The AfterUpdate event of the tab control
would fire whenever the page was changed, so you could put the check in
there. OnChange is a different thing - that is not what you want here.

HTH,
TC
 
S

Sheldon

I added a tab control "tabVendors" to my form with three
tab "Vendor Add", "Vendor Modify", and "Vendor Delete".
In code how do I tell which tab I am currently on.

I tried the OnCLick event for the "Vendor Add" tab, but
the code does not pass thru this event. In the OnChange
ecent for "tabVendors" I would expect an index to
reference for the particular tab.

Thanks
 
J

JohnWL

See the message thread "Tab Control Issue" started in this newsgroup
11/05/03 at 3:05 PM. It has several pertinent comments you may want to be
aware of. The Click event does not work as one would expect. In the
meantime, heres the code you're probably looking for that gets to the index
which was supplied by MediaLint in that thread (correct the control name to
your own control) for the name of the current tab:
Me.TabCtl0.Pages(Me.TabCtl0.Value).Name

John Loewen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top