Events of the Tab Control do not fire

  • Thread starter Thread starter Byron
  • Start date Start date
B

Byron

Using Access 97 with a tab control on a form, none of the
events of the tab control fire. Micorsoft documents this,
but does someone have a work-around for this. I would
like to take action when the tab is clicked and not just
when the page of the tab is clicked.

Thanks for any input.

Byron
 
Byron said:
Using Access 97 with a tab control on a form, none of the
events of the tab control fire. Micorsoft documents this,
but does someone have a work-around for this. I would
like to take action when the tab is clicked and not just
when the page of the tab is clicked.

Thanks for any input.

Byron

What do you mean, "none of the events of the tab control fire.
Microsoft documents this[...]"? As far as I know, all of the events of
a tab control that are *supposed* to fire, do fire. However, some of
the events may not do what you think they do, and this is documented in
the help files.

When a tab control changes pages -- whether because you clicked a tab or
because the focus was transferred to a control on a different tab
page -- the tab control's Change event fires. That's usually the event
to program for. In that event, and after it is fired, the Value
property of the tab control gives the page index of the page that is now
current.
 
The Click event of the Page in a tab control does not fire when you click on
the tab for the page.

The Change event of the tab control does.
 
Thanks for the input.

Dirk, I was speaking of the events of the Tab control,
not the events of the pages of the tab control. I found a
document in the knowledge base that talked about having
to use a case statement with the pages of the tab control
to determine when a page changes because the tab click
event did not fire. I appologize for not getting the
number of the article. I went back to look for it again
but could not find it.

Allen, you are correct and I think that I may be able to
use the "Change" event along with the Page index to
accomplish what I am attempting to do.

I had not noticed the change event for the tab control.

Thanks again.

Byron
 
Byron said:
Thanks for the input.

Dirk, I was speaking of the events of the Tab control,
not the events of the pages of the tab control. I found a
document in the knowledge base that talked about having
to use a case statement with the pages of the tab control
to determine when a page changes because the tab click
event did not fire. I appologize for not getting the
number of the article. I went back to look for it again
but could not find it.

But the tab control's Click event *does* fire; it's just that you can't
do anything useful with it, as it has nothing to do with the changing of
pages. It fires when the border of the control is clicked. Doubtless
the KB article you saw was trying to explain this.
 
The article that I found was article 172616.

I was actually talking about the click event of the tab
of each page. If you select the Tab of a page, the list
of events includs the Click event. When I tried to use
this event it never fired.

Sorry if I did not make myself clear, but I think I can
make things work now.

Thanks,

Byron
 
Byron said:
The article that I found was article 172616.

I was actually talking about the click event of the tab
of each page. If you select the Tab of a page, the list
of events includs the Click event. When I tried to use
this event it never fired.

If you look at the property sheet when you select the tab, you'll see
that it's the property sheet of the page, not of the little tab itself.
That event will fire if you click on the body of the page. That little
tab, the protrusion of the page, has no events.
 
Back
Top