I want to put different headings on each switchboard page. I used the
Switchboard manager to make the switchboard, but don't know how to do a
different header on each page or to format the font on each page.
Thanks
Are you talking about the Switchboard created by the built-in Access
Switchboard Manager?
You can change some of the code in the Switchboard's Private Sub
FillOptions() procedure.
Make the change starting at the If (rs.EOF) Then line.
Watch out for word wrap.
The code below assumes you have 3 menu pages.
Private Sub FillOptions()
......
......
If (rs.EOF) Then
Me![OptionLabel1].Caption = "There are no items for this
switchboard page"
Else
While (Not (rs.EOF))
Me("Option" & rs![ItemNumber]).Visible = True
Me("OptionLabel" & rs![ItemNumber]).Visible = True
Me("OptionLabel" & rs![ItemNumber]).Caption =
rs![ItemText]
rs.MoveNext
Wend
If Me.SwitchboardID = 1 Then
Label1.Caption = "I'm the Forms Menu."
Label2.Caption = "I'm the forms Menu"
ElseIf
Label1.Caption = "I'm the Reports Menu"
Label2.Caption = "I'm the Reports Menu"
Else
Label1.Caption = "I'm the Queries Menu"
Label2.Caption = "I'm the Queries Menu"
End If
End If
rs.Close
Set rs = Nothing
Set con = Nothing
End Sub
The Built-in Switchboard created by the Switchboard Manager has been
called a complicated solution to a simple problem.
Why not create your own switchboard(s) using unbound forms with
command buttons?
You can have as many buttons as you wish, and if you use the command
button wizard when adding the buttons, Access will even wrote most of
the code for you. You will have more control over how the switchboard
look and works, and maintenance will be simpler.