manipulation toolbars

B

Bre-x

Hi,

I would like to use a tool bar as a "display banner".

If a user open a particula form i need to change the "label" on my toolbar
to say "You are on XXXX Form"

any ideas? pointers? suggestions? complains? comments?

Regards,

Bre-x
 
H

Howard Brody

I think you're referring to the form's caption, not to the
toolbar.

To change the text displayed in the strip at the top of
your screen, set the Form.Caption property.
 
B

Bre-x

no am not,
I just want to change the label of the menu on a toolbar programmatically.

Thnks
 
P

PC Datasheet

Complains - Not the thing to do!!

How about just setting the Caption property of the form to:
"You are on XXXX Form"
 
V

Van T. Dinh

If you are talking about the Caption of your ToolBar, try something like:

Application.CommandBars("Custom 1").NameLocal="Whatever"

If you are talking about Caption of a Menu ControlButton in your ToolBar,
try something like:

Application.CommandBars("Custom 1").Controls(1).Caption= "Whatever"

You need to add the Microsoft Object Library into the References of your
database.

If neither of the above is what you need (A ToolBar has lots of Properties
and Objects and I cannot be sure from your description), experiment with the
ObjectBrowser and the Immediate Window.
 
Top