?
Solved

Access97 Switchboard Manager

Posted on 1998-10-19
2
Medium Priority
?
335 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 200 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Suggested Courses

765 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