in message:
Can I know how to do this? Easiest way to do this is to highlight the last
command button and label and select Copy.
In Access 2007, you do **not** need to make any modifications to the Switchboard form in order to
display more than eight items on a page.
Let me try this a different way...
1. Don't change anything about the Switchboard form. Meaning, don't add any more controls to the
form and don't try and modify any of the embedded macros attached to the form. Leave the form alone.
2. If you want to use the Switchboard Manager to **add** more than eight items, you can't. The
wizard is hard coded to reject more than eight. There's no way to change that. You can, however, use
the wizard to edit more than eight if you manually put in more records into the Switchboard Items
table.
3. To have more than eight items, you **must** close the wizard and add the records you need
manually to the Switchboard Items table.
I think you're confused on the third point, so let me explain further. The Wizard simply is a tool
for adding, editing, and deleting records from the Switchboard Items table. Close any objects you
have open and then open the Switchboard Items table in the Navigation Pane in datasheet view.
Now take a close look at the records. What do you see?
You'll see these five fields:
SwitchboardID - This is the ID for each menu or page in your switcboard
ItemNumber - This is the display order of each item on a specific page
ItemText - This is the text displayed on the menu for each item
Command - A specific number that Access uses to do "something"
Argument - This is used by some commands to know what object Access needs to work with.
The Switchboard Wizard simply helps you organize these records. The Switchboard form reads the
information from this table and displays it on the form.
So to have more than eight items on a menu page you have to do this manually. You'll need to take a
few minutes and study the records in your table. Trust me, after you look at the records for a
little bit, it will all make sense.
Here's a quick example.
Say you have these records in that table for the first menu page:
1 0 Main Switchboard Null Default - This is the name of a menu page
1 1 Open a form 3 Form1 - This will open Form1 in Edit mode
1 2 Open Form2 3 Form2 - This will open Form2 in Edit mode
Etc.
Etc.
Follow me so far?
To make a nineth option for this page just create a new record like so:
1 9 Open Form9 3 Form9 - This will open Form9 in Edit mode
That's all you have to do.
When you open the Switchboard form and navigate to that menu page, you'll now see nine options
instead of just eight.
Make sense?
Now if you open the Switchboard Wizard you'll see this nineth option listed. You can shuffle the
order with the Move Up and Move Down buttons, you can edit the command, and even delete it. However,
if you press New on that page, the Wizard will still prevent you from adding more than eight.
Does that help explain it better?
--
Jeff Conrad - Access Junkie - MVP Alumnus
SDET II - Access Test Team - Microsoft Corporation
Co-author - Microsoft Office Access 2007 Inside Out
Presenter - Microsoft Access 2007 Essentials
http://www.accessmvp.com/JConrad/accessjunkie.html
Access 2007 Info:
http://www.AccessJunkie.com