main switchboard caption

D

David Cleland

anyone know how to change the caption of the main switchboard. Mine says
"main switchboard" yet I have changed it in the caption property ?

David
 
D

Dave M

On the whole, it's probably better to "roll your own" on switchboards, but
if you must use Microsoft's, you can do this by modifying the Switchboard
Options table and the FillOptions procedure in the Switchboard's form
module. I had to do this some time ago, and unfortunately I've lost track of
the specifics, but it works if you don't have any other options.
 
R

Randy

David said:
anyone know how to change the caption of the main switchboard. Mine says
"main switchboard" yet I have changed it in the caption property ?

David

David, Yes changing the caption property will not make any effect, since
there is code on the form that overwrite this property. The right way to
rename the switchboard is by going to the "Switchboard Items" table and
changing the value of the "ItemText" field of the record with field
"ItemNumber" = 0.

-Randy
 
M

Megan

Hi David,

You will need to change the name of the switchboard itself (not the form) -
You need to do this in the switchboard manager (Tools> Add-ins> Switchboard
Manager - in access 97)
 
F

fredg

Hi David,

You will need to change the name of the switchboard itself (not the form) -
You need to do this in the switchboard manager (Tools> Add-ins> Switchboard
Manager - in access 97)

The Switchboard form's Current event sets the caption of each
switchboard page.

Private Sub Form_Current()
' Update the caption and fill in the list of options.

Me.Caption = Nz(Me![ItemText], "")
FillOptions

End Sub

To change the caption of the first page, using the switchboard editor
change (Edit) the first switchboard page name (Main Switchboard) to
whatever you wish.
To change the caption of all pages to the same, simply use:
Me.Caption = "this is the caption."
 
Top