Open your switchboard in design view and then open the code window.
In the FillOptions procedure change the constant ConNumButtons
Code:
Private Sub FillOptions()
' Fill in the options for this switchboard page.
' The number of buttons on the form.
Const conNumButtons =
9
Close the code window and return to the Design view.
Add the extra buttons and labels by copy and paste.
The Option buttons and the labels are named Option1, Option2, etc and OptionLabel1, OptionLabel2 etc. Make sure you change the Option button names AND the Label names to reflect the additional buttons.
1) On the switchboard form, you need to add (copy and paste) the two extra buttons and labels.
2) On the 9th button, change the button name to Option9, and the label to OptionLabel9.
3) On the 9th button OnClick Event, change the =HandleButtonClick(8) to =HandleButtonClick(9)
4) On the 9th Label, Do the same.
5) Do steps 2 and 3 again for the 10th button and label.
6) Go to the new table that Access created called "Switchboard Items"
7) Add the appropriate information for each of the new buttons.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.