?
Solved

Access Tab Control - Show Caption by Tab

Posted on 2008-09-30
3
Medium Priority
?
419 Views
Last Modified: 2012-08-13
I have two tabs, one for Expenses the other for Budget Entry.  Unable to get the Caption for the form to read based on each tab - have tried On Change() and on Click.  

Help???
0
Comment
Question by:GR82BBlondie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 66

Expert Comment

by:Jim Horn
ID: 22606076
I highly recommend against this.
The form caption should describe the form, not the tab of a tab control that is currently active.

If you really wanted to do this, it would be the tab control's Click event.
Keep in mind that every time this is done it requires a form repaint, and that may be slow if your form has a lot of objects in it.

Private Sub YourTabControl.Click

Select Case YourTabControl.Value
   Case 1
       Me.Caption = "foo"
   Case 2
       Me.Caption = "bar"
End Select

Me.Repaint

End Sub
0
 

Author Comment

by:GR82BBlondie
ID: 22606367
Thank you for the response.  I understand not recommending it but it's being requested from higher up the ladder.  :)

Unfortunately this did not work.  

Private Sub TabCtl.Click (recieve and error message - Compile Error Expected: end of statement.)  Is this suppose to be Private Sub TabCtl_Click()  

Another quesiton:  Select Case TabCtl.Value - does that mean the value of the page?  I tried TabCtl.Value(0) and TabCtl.(0) but neither works.  

0
 

Accepted Solution

by:
GR82BBlondie earned 0 total points
ID: 22669664
Chose not to pursue this.  

Thank you.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question