Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switchboard.... 1

Status
Not open for further replies.

kjonnnnn

MIS
Aug 25, 2000
317
US
Is it possible to get more than 8 items on a Switchboard..? [sig][/sig]
 
Yes! Add more button if there is space and change the constatnt acording to the number od buttons on main screen.
[sig][/sig]
 
But when I try to add more than 8 I get the message...

Sorry, only 8 items are allowed per switchboard page. [sig][/sig]
 
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.

Hope this helps.
Lightning
[sig][/sig]
 
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.

[sig]<p>Jim Lunde<br><a href=mailto:compugeeks@hotmail.com>compugeeks@hotmail.com</a><br><a href= Application Development[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top