Solved

Access97 Switchboard Manager

Posted on 1998-10-19
2
331 Views
Last Modified: 2008-10-12
How can I change the text of the label depending on what switchboard I go to?

Ex.  I have a "Main Switchboard" that has a label that says "Main Switchboard".  On the Main Switchboard is a button that says "View Reports".  

When I click on this button it changes the buttons to all report options.  I want to now change the label to "Reports Switchboard"

How can I do this in code?  The switchboard manager will allow me to change the title of the Switchboard form, but I would also like to change the label.

Thanks,

Kev
0
Comment
Question by:kpetti
[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 Comments
 
LVL 1

Accepted Solution

by:
steve06 earned 50 total points
ID: 1965871
Kev,

Here is a way.

Open your switchboard form in design mode. Right-click the button you have to press to display all the reports, then select properties, then the tab event. On the line "on click", you should read something like "HandleButtonClick (1)".

Replace this option by selecting from the combobox the "event procedure". Left-click on the  "..." on the right of the line, so a procedure code opens, with a new sub for the event you have just created. Add the two middle line to get:

Private Sub Option1_Click()

    Me.Caption = "This is my new title!!!"
    HandleButtonClick (1)
   
End Sub

As you should notice, if your button was called 6, replace the "1" in the sub and handlebuttonclick line by a "6".

Hope this answer your question.

Steve.
0
 

Author Comment

by:kpetti
ID: 1965872
steve06,

It worked really well!!!  Thanks for the help.

:)

Kev
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pass Variables from Vba access to SQL Query 1 32
Linking Master Child Fields 2 26
Access Query: Text to Date 10 32
Trying to delete two linked tables from front-end 7 16
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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…

749 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