Detecting which tab is currently shown

G

Guest

I am developing a database in MS Access 2003. I have a form with 3 tabs and
navigation buttons at the bottom, away from the tabbed area. I wish to
disable the navigation buttons when tab 2 or 3 are selected and re-enable
them when tab 1 is selected. Can anyone help?
 
R

Rick Brandt

Rich said:
I am developing a database in MS Access 2003. I have a form with 3
tabs and navigation buttons at the bottom, away from the tabbed area.
I wish to disable the navigation buttons when tab 2 or 3 are selected
and re-enable them when tab 1 is selected. Can anyone help?

Use the Change event of the TabControl...

Select Case Me!TabControlName.Value
Case 0
Me!ButtonName.Enabled = True
Case 1,2
Me!ButtonName.Enabled = False
End Select
 

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