Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Access97 Switchboard Manager

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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

636 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