5 - Designing A Switchboard:
There are two formal
ways you can get a switchboard in Microsoft Access. You can design your
own, or use the Switchboard Manager so that Microsoft Access will help you
create one.
To explore the
Switchboard Manager, we will use three directories for our database. The
first directory (1) or dialog will be the main entrance of the database,
the Main Switchboard. It will allow the user to preview the read-only
albums form or to view the albums by categories. It will also allow the
user to access another switchboard (2) where the user will be lead to
other forms on the database. The main switchboard will also give access to
another switchboard(3) that has a list of all the available reports. The
user will also be able to exit the whole database from the main
switchboard.
- Start
Microsoft Access and open the Music Collection8 database.
- In
Microsoft Access 97, on the main menu, click Tools -> Add-Ins ->
Switchboard Manager. In MS AC2000, on the main menu, click Tools
Database Utilities -> Switchboard Manger. If you didn't have a
switchboard yet, you will receive a message like the following:
- Click
Yes to create a new switchboard.
- In
the main dialog of Switchboard Manager, click the Edit button and
change the name of the Main Switchboard to
Music Collection Database
Click Close.
- Click
the New button and type Other Forms. Click OK. Click New, type Preview
Reports and click OK. Now that various switchboards have been created,
we can edit the content of each.
- Double-click
Music Collection Database (Default).
- In
the Edit Switchboard Page dialog, click New and type View Albums
Records, and press Tab. In the Command combo box, choose Open
Form In Edit Mode. In the Form combo box, choose frmAlbumsView and
click OK.
- In
the Edit Switchboard Page dialog, click New and type View Albums By
Categories, and press Tab. In the Command combo box, choose Open Form
In Edit Mode. In the Form combo box, choose fvwAlbumsCategories and
click OK.
- In
the Edit Switchboard Page dialog, click New and type Access Other
Forms, and press Tab. Make sure the Commands combo box displays
Go To Switchboard. In the Form combo box, choose Other Forms, and
click OK.
- In
the Edit Switchboard Page dialog, click New and type Preview Reports,
and press Tab. Make sure the Commands combo box displays Go To
Switchboard. In the Form combo box, choose Preview Reports, and click
OK.
- In
the Edit Switchboard Page dialog, click New and type Exit The Music
Collection Database, and press Tab. In the Command combo box,
choose Exit Application, and click OK.
- In
the Edit Switchboard Page, click Close.
- In
the Switchboard Manager, click Other Forms. Then click Edit.
- Change
the Switchboard name to Access To Other Forms.
- Click
New and type Edit Artists Names, and press Tab.
In the Commands combo box, choose Open Form In Edit Mode. In
the Form combo box, choose frmArtists and click OK.
- Click
New and type Edit Music Categories, and press Tab.
In the Commands combo box, choose Open Form In Edit Mode. In
the Form combo box, choose frmMusicCategories and click OK.
- Click
New and type Edit Albums Tracks, and press Tab.
In the Commands combo box, choose Open Form In Edit Mode. In
the Form combo box, choose frmAlbumsTracks and click OK.
- Click
New and type Edit Albums, and press Tab. In the
Commands combo box, choose Open Form In Edit Mode. In the Form
combo box, choose frmEditAlbums and click OK.
- Click
New. In the Text box, type Return to Main Switchboard. Make sure the
Command box displays Go to Switchboard. In the Switchboard combo box,
choose Music Collection Database. Click OK and click Close.
- Continue
the same process to build and configure the Preview Report switch
board. On the Switchboard Manager, click Preview Reports. Make
sure you provide a Return To Main Switchboard.
- When
you have finished, close all switchboard dialogs.
- From
the Database Window, click the Forms button, and double-click the
Switchboard.
- You
can make your switchboard always display at startup (when you start
your application). On the main menu, click Tools -> Startup...
- In
the Application Title box, type Music Collection. In the
Display Form/Page combo box, choose Switchboard. Click OK.
|