WhatsThisButton Property

Microsoft Access Visual Basic

expression.WhatsThisButton

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The WhatsThisButton property uses the following values:

Setting Visual Basic Description
Yes True A What's This button appears on the title bar.
No False (Default) A What's This button doesn't appear on the title bar.

You can set the WhatsThisButton property by using the form's property sheet, a macro, or Visual Basic.

This property can be set only in form Design view.

You can't display the What's This button on the title bar of a form unless the MinMaxButtons property is set to None.

Clicking the What's This button on the title bar of a form causes the question-mark mouse pointer to appear. With the question-mark pointer, you can click any control to access its custom Help topic specified by the control's HelpContextID property. If the control doesn't have a custom Help topic, the form's custom Help topic is displayed. If neither the form or the control has a custom Help topic, Microsoft Access Help is displayed.

Example

The following example places a What's This button on the title bar of the "Switchboard" form. The form must be in form Design view, or else a run-time error will occur.

Forms.Item("Switchboard").MinMaxButtons = 0 
Forms.Item("Switchboard").WhatsThisButton = True