Solved

Different headings on sub-switchboards

Posted on 2002-07-19
6
426 Views
Last Modified: 2011-09-20
In Access 97, is there any way to have a different heading at the top of a switchboard if you have a button that takes you to a sub-switchboard?  So for instance, if my main switchboard says "Contracts" and I have a button on this switchboard labeled REPORTS, so when I click on this button it takes me to a sub-switchboard.  And at the top, now I want it to say "Contract Reports" instead of just "Contracts".  Any way to do this??????

0
Comment
Question by:esu4236
  • 2
  • 2
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
Lianne072600 earned 100 total points
ID: 7166008
esu4236,

Have you ever tried creating a form and using this as a switchboard page? I know this doesn't actually answer your question but I thought it may be worth mentioning as I always find it not only easier to create but much simpler to manage switchboards that are actually standard forms with the relevant buttons on. This is especially prevalent if you will ever want to use the database on differant versions of Access, as standard forms are easy to convert/migrate. Just a thought.

Lianne
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7166452
Just goto the switchboard manager.
The switchboardnames that are displayed will be the name of the form, when you add a switchboard as a sub, you're able to specify the text on the MainSwitchboard, that can ofcourse differ from the switchboardname.

Need more info ?

Nic;o)
0
 

Author Comment

by:esu4236
ID: 7169426
Lianne,
I tried your idea, and that may work better.


nico5038,
I don't understand your message.  I'm talking about the text box title that appears at the top of the main switchboard - not the actual selections on the switchboard.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 54

Expert Comment

by:nico5038
ID: 7169644
I thought you were referring to the name of the form in the blue bar.
The textbox can be changed by adding a text column named "titletext" to the table "Switchboard Items"
and using this code in Private Function HandleButtonClick(intBtn As Integer):

        ' Go to another switchboard.
        Case conCmdGotoSwitchboard
            Me.Filter = "[ItemNumber] = 0 AND [SwitchboardID]=" & rs![Argument]
            If IsNull(rs!titletext) Then
               Me.Label1.Caption = "Your database name"
            Else
               Me.Label1.Caption = rs!titletext
            End If
You'll need to replace the "Your database name" with the application name you want on the first form and all sub-switchboards require the wanted text.

Clear ?

Nic;o)
0
 

Author Comment

by:esu4236
ID: 7201220
That may be the way we go -- set up a separate form with all the buttons on it to access the other forms.  I like that idea.

Thanks for the tip.
0
 
LVL 1

Expert Comment

by:Lianne072600
ID: 7204512
Glad to be of assistance.

Lianne
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now