StartupShowStatusBar Property

Applies To

Database object.

Description

You can use the StartupShowStatusBar property to specify whether or not the status bar should appear when the application database opens. For example, you can use the StartupShowStatusBar property to prevent display of the status bar if you don't want to display any status messages in your application.

Setting

The StartupShowStatusBar property uses the following settings.

Setting

Description

True (–1)

Display the status bar at startup.

False (0)

Don't display the status bar at startup.


The easiest way to set this property is by using the Display Status Bar option in the Startup dialog box, available by clicking Startup on the Tools menu. You can also set this property by using a macro or Visual Basic.

To set the StartupShowStatusBar property by using a macro or Visual Basic, you must first either set the property in the Startup dialog box once or create the property by using the CreateProperty method and append it to the Properties collection of the Database object.

Remarks

Setting this property affects the display of the status bar only for the current database. You can also control whether the status bar is shown or hidden by default for all Microsoft Access databases. To do this click Options on the Tools menu, click the View tab, and then select or clear the Status Bar check box under Show. The current database won't display a status bar if any of the following is true: the Status Bar check box in the Options dialog box is cleared; the Display Status Bar check box in the Startup dialog box is cleared; or the StartupShowStatusBar property is set to False.

This property's setting doesn't take effect until the next time the application database opens.

See Also

AllowBreakIntoCode property, AppIcon property, AppTitle property, CreateProperty method ("DAO Language Reference"), Properties collection ("DAO Language Reference"), StartupForm property, StartupMenuBar property, StartupShortcutMenuBar property, StartupShowDBWindow property, StatusBarText property.

Example

See the AllowBreakIntoCode property example.