Tab Control Click Events

  • Thread starter Thread starter MikeC
  • Start date Start date
M

MikeC

I'm using a tab control on a form in AXP. I just
discovered that the Click events for all the tab pages are
not firing when I click on any of the tab pages.

I would think this is pretty hard to misunderstand. You
click the the tab and then the event should fire. Right?
Well, it isn't. I even put a msgbox in the event, just to
be sure. Nothing happens.

What am I missing?
 
Looks like I found an answer and solution in KB 324583.

http://support.microsoft.com/default.aspx?scid=kb;en-
us;324583&Product=acc2002

According to KB 324583, the click event is not intended to
fire when the user clicks on the tab, but instead is
supposed to fire when the user clicks on the body of the
tab page. I have tested this and sometimes clicking on
the body triggers the event and sometimes it doesn't.

In any case, the code recommended in the above article
solves the problem.
 
Yep. When you click the little tab (to move to a different Tab Page), the
value of the TabControl changes so the TabControl_Change Event occurs.

--
HTH
Van T. Dinh
MVP (Access)
 
Back
Top