Getting The Heading To Reflect The Title Of The Current Switchboard Page
strSQL = strSQL & " WHERE [ItemNumber] > 0 AND [SwitchboardID]=" & Me![SwitchboardID]
to >= 0
Wend
End If
With the following code
'If there are no options for this Switchboard Page,
'display a message. Otherwise, fill the page with the items and
'adjust the heading.
If (rst.EOF) Then
Me![OptionLabel1].Caption = "There are no items for this
switchboard page"
Else
While (Not
(rst.EOF))
If rst![ItemNumber] = 0 And rst![SwitchboardID] > Then
Label1.Caption = rst![ItemText]
Label2.Caption =
rst![ItemText]
End If
If rst![ItemNumber] > 0 Then
Me("Option" & rst![ItemNumber]).Visible = True
Me("OptionLabel" & rst![ItemNumber]).Visible = True
Me("OptionLabel" & rst![ItemNumber]).Caption =
rst![ItemText]
End If
rst.MoveNext
Wend
End If
Label1.Caption = "title"
Label2.Caption = "title"
replacing title with the text you would like to appear in the heading when the first page of the switchboard is active.
How To Add More Than 8 Items To Any Switchboard Page
These steps only allow more items to be displayed on the Switchboard form. Once they are done the switch board wizard will still not let you add more than 8 items per page, but you can add them by editing the table Switchboard Items. Any new items you place in this table will show up in the switchboard manager dialog boxes.
Lila Godel's Web Site
Brought To You By Hamilton Services, Inc.