manipulation toolbars

  • Thread starter Thread starter Bre-x
  • Start date Start date
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
 
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.
 
no am not,
I just want to change the label of the menu on a toolbar programmatically.

Thnks
 
Complains - Not the thing to do!!

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

PC Datasheet said:
Complains - Not the thing to do!!

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


--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed)
www.pcdatasheet.com
 
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.
 
Back
Top