02 – Switchboard Forms- Creating A Simple Switchboard

In this post, we will be showing you how to create a simple Switchboard form that you can use to open up forms.

Please download the database to follow along with the post.

How Exactly Do We Create A Switchboard Form

The first thing we need to do is create a blank form and then add a button. Save the form as frmAdmin and name the button cmdSwitchboard.

Screenshot 2014-05-02 13.27.37Click on cmdSwitchboard button and in the property sheet click on the event tab. Click on the ellipsis for the On Click line and choose Macro Builder.

Screenshot 2014-05-02 14.05.33Add “RunMenuCommand” as a new Macro action and type in Switchboard Manager.

Screenshot 2014-05-04 13.11.11Save and close the Macro. Change the Form view to Form mode and click on cmdSwitchboard. Screenshot 2014-05-04 13.14.40
Click on Yes.

Screenshot 2014-05-04 13.17.28This is the form that you will use to create your Switchboard. We will be showing you how to use it to open up data-entry forms.

As it stands, you have one switchboard called “Main Switchboard”. This switchboard doesn’t contain any buttons yet because we haven’t told it what we want it to do.

Click on Edit.

Screenshot 2014-05-04 13.21.34This form lists all of the operations under the Main Switchboard (none). Click on New and let’s add one.

Screenshot 2014-05-04 13.23.19
A new form pops up that will allow us to add a single operation.

For Text write Languages. For Command choose Open Form In Edit Mode and for Form choose frmSuppliersDataEntry.

Screenshot 2014-05-04 13.26.49Click on OK. Repeat the same exercise only this time we will add frmLanguagesDataEntry.

Screenshot 2014-05-04 13.28.29Now let’s take a look and see what we have done.

Close all of the dialog boxes associated with the Switchboard Form and open up the Navigation Pane. Find Switchboard and double-click on it to open it up.

Screenshot 2014-05-04 13.30.45If you now click on Suppliers, frmSuppliersDataEntry will open up.

Screenshot 2014-05-04 13.34.44And clicking on Languages will cause frmLanguagesDataEntry to open up.

Screenshot 2014-05-04 13.35.05We are going to add buttons for frmFormDataEntry, frmServicesDataEntry, frmClientsDataEntry and frmSubjectsDataEntry.

Our Edit Switchboard Page dialog box now looks like this…

Screenshot 2014-05-04 13.40.21…and our Switchboard now looks like this…

Screenshot 2014-05-04 13.40.30…!

In this post, you have learned how to create a simple Switchboard Form that can open up other forms in the database. In the next post, we will be showing you how to create different “views” so that you can click on a button and get taken to what appears to be a separate form when it fact it is the same form with a different filter. Spooky!

Leave a Reply

Your email address will not be published. Required fields are marked *

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube