TabStop Property

Applies To

Bound Object Frame Control, Chart Control, Check Box Control, Combo Box Control, Command Button Control, List Box Control, Option Button Control, Option Group Control, Subform/Subreport Control, Text Box Control, Toggle Button Control, Unbound Object Frame Control.

Description

You can use the TabStop property to specify whether a control can receive the focus in Form view.

Note The TabStop property applies only to controls on a form.

This property doesn’t apply to check box, option button, or toggle button controls when they appear in an option group. It does apply only to the option group itself.

Setting

The TabStop property uses the following settings.

Setting

Description

Visual Basic

Yes

(Default) You can move the focus to the control by pressing the TAB key.

True (-1)

No

You can’t move the focus to the control by pressing the TAB key.

False (0)


You can set this property using the control’s property sheet, a macro, or Visual Basic.

Remarks

When you create a control on a form, Microsoft Access automatically assigns the control a position in the form’s tab order. Each new control is placed last in the tab order. If you want to prevent a control from being available when you tab through the controls in a form, set the control’s TabStop property to No.

In Form view, hidden or disabled controls remain in the tab order but are skipped when you tab through the controls, even if their TabStop properties are set to Yes.

As long as a control’s Enabled property is set to Yes, you can click it or use an access key to select it, regardless of its TabStop property setting. For example, you can set the TabStop property of a command button to No to prevent users from selecting the button by pressing the TAB key. However, they can still click the command button to choose it.

See Also

AutoTab Property; Enabled, Locked Properties; TabIndex Property.