ShowToolbar Method

ShowToolbar Method

See Also         Example         Applies To

The ShowToolbar method carries out the ShowToolbar action in Visual Basic. For more information on how the action and its arguments work, see the action topic.

Note   The ShowToolbar method affects only toolbars, not menu bars or shortcut menus.

Syntax

DoCmd.ShowToolbar toolbarname[, show]

The ShowToolbar method has the following arguments.

Argument Description
toolbarname A string expression that's the valid name of a Microsoft Access built-in toolbar or a custom toolbar you've created.
  If you run Visual Basic code containing the ShowToolbar method in a library database, Microsoft Access looks for the toolbar with this name first in the library database, then in the current database.
show One of the following intrinsic constants:
  acToolbarNo
acToolbarWhereApprop
acToolbarYes (default)
  If you leave this argument blank, the default constant
(acToolbarYes) is assumed.

Remarks

If you leave the show argument blank, don't use a comma following the toolbarname argument.