Disable Microsoft Access Form Fields Until a Checkbox Is Selected
Question details
The user wants selected Access form fields disabled until a checkbox is selected, with separate buttons for creating and saving records.

- Product
- Microsoft Access 2013 and Microsoft Access for Microsoft 365
- Device & OS
- not provided
- Scenario
- A data-entry form contains a checkbox and fields such as Class Name, Class ID, and Instructor.
- Observed behavior
- The fields should be unavailable when the checkbox is cleared and available when it is selected. The form should also provide New and Save actions.
Open the data-entry form in Design View and check the actual names of the checkbox and field controls in the Property Sheet. Replace the example control names in the following steps with those used on your form.
Use Conditional Formatting to Disable the Fields
Apply a rule to each field so it is disabled while the checkbox is unchecked.
In the Navigation Pane, right-click the form and choose Design View. Select the Class Name control.
On the Format tab, select Conditional Formatting, then choose New Rule. Select the option to check values in the current record or use an expression, and choose Expression Is.
Enter Nz([CheckBoxName], False) = False, replacing CheckBoxName with the checkbox control name. Toggle the Enabled option in the rule's formatting controls so that the field is disabled when the expression is true, then select OK.
Repeat the rule for the Class ID and Instructor controls. Switch to Form View and test the form with the checkbox both cleared and selected.

Add Separate New and Save Buttons
Use a command button to start a new record and a VBA event to save the current record explicitly.
Work With Office Documents in WPS Office
WPS Office is a free, lightweight alternative for everyday documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easy to move existing files. It does not replace Microsoft Access forms or edit Access database files.

Frequently Asked Questions
What if the checkbox has no value yet?
Use Nz([CheckBoxName], False) = False in the conditional formatting expression. This treats a Null checkbox value as unchecked.
Where can I find the checkbox's control name?
Open the form in Design View, select the checkbox, and open the Property Sheet. Check the Name property on the Other or All tab.
Does the New button save the current record?
Access normally saves the current record when the New button moves to a new record. If required fields or validation rules are not satisfied, Access can stop the move and display a message.
Why does the Save button use Me.Dirty = False?
In a form's VBA module, setting Me.Dirty to False tells Access to save the current edited record. The error handler can display a message if validation or another error prevents saving.
Can WPS Office modify my Access form?
No. Use Microsoft Access to edit Access database forms and their VBA. WPS Office can work with compatible Word, Excel, and PowerPoint files used alongside the database.




