Tab onclick not responding

I

ITMA

Anyone any ideas why a procedure on the OnClick event of a tab based form
isn't having any effect on the controls that I want it to?

I have some buttons down the right hand side of the tab form and, having
been disappointed to find they persist for all tabs rather that apply only
to the tab in which they were inserted, I want to detect the tab currently
selected, and then change the caption and visible property of the buttons to
suit each tab option. Trouble is they're not responding!
 
I

ITMA

Anyone any ideas why a procedure on the OnClick event of a tab based form
isn't having any effect on the controls that I want it to?
I have some buttons down the right hand side of the tab form and, having
been disappointed to find they persist for all tabs rather that apply only
to the tab in which they were inserted, I want to detect the tab currently
selected, and then change the caption and visible property of the buttons
to suit each tab option. Trouble is they're not responding!

To answer my own question seeing as no-one else did - the easy solution is
to paste the cut and paste the buttons with the mouse over the tab itself.
That way Access gets the message that you want them to apply to just that
tab. As for detecting the onclick event, it detects when somewhere on the
form other than the tab itself is clicked - next to useless. The trick to
detecting changes in the selected tabs themselves is detect the OnChange
event of the tab form as a whole, and then use a Select Case for the .Value
 
R

Rick Brandt

ITMA said:
To answer my own question seeing as no-one else did - [snip]

I actually answered your question 10 minutes after it was posted. Sometimes
not all news servers pick up all posts.
 

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