Page 26 of 31PREVNEXT

Combo boxes, list boxes, and other controls

Forms and reports

Enabled Locked Description
Yes Yes Control can receive the focus. Data can be copied but not changed.
No No Control cannot receive the focus. Data cannot be copied or changed.
Yes No Control can receive the focus. Data can be copied or changed. These are the default properties when you insert a control.
No Yes Control cannot receive the focus. Data cannot be copied or changed.

You might want a control to display data, such as product code numbers, that should not be changed by users. To help protect the data from change, you would lock the control.

You could also prevent the control from receiving the focus, which means that users could not click it or activate it with the TAB key. Disabling a control this way makes clear that its data cannot be changed.

To apply these properties in a form or a report, you would select a control, click the Properties button Button image on the Form Design or Report Design toolbar, and click the Data tab. There you would choose the No value for the Enabled property, and the Yes value for the Locked property.

The table gives details of the properties and their interactions.

Page 26 of 31PREVNEXT