Fix a Command Button in a Microsoft Access Split Form
Question details
The user needs a command button to work in a newly created Access split form.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A command button that works in single or continuous form view is used in a new split form.
- Observed behavior
- The button fails in the split form, which may lack a record source or a bound field.
Identify the table or query the split form should display and confirm that it contains at least one field. Note the form's name if the button is intended to close it.
Set the Split Form's Record Source and Add a Bound Field
Use this when the split form has no record source or does not contain a bound field.
In the Navigation Pane, right-click the split form and select Design View.
Open the Property Sheet, select Form from the selection list, and on the Data tab choose the appropriate table or query in Record Source.
On the Design tab, select Add Existing Fields and drag at least one field from the field list onto the form.
Save the form, switch to Form View, and click the command button to check whether it works.

Fully Qualify a VBA Command That Closes the Form
Use this if the button is supposed to close the form and its Click event runs VBA code.
Work With Office Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for documents, spreadsheets, and presentations. Its Office format support helps you move everyday files between suites, but it does not repair Access forms or replace Microsoft Access.

Frequently Asked Questions
Where do I set the record source for an Access split form?
Open the form in Design View, select Form in the Property Sheet, and set Record Source on the Data tab to the table or query you want to display.
How do I add a bound field to the form?
In Design View, select Add Existing Fields on the Design tab, then drag a field from the form's record source onto the form.
How can I make a button close a specific form?
In the button's VBA Click procedure, use `DoCmd.Close acForm, "FormName", acSaveNo` and replace FormName with the actual form name. The acSaveNo argument does not save form design changes.
Can WPS Office fix an Access split-form button?
No. The form's record source, bound controls, and VBA event must be checked in Microsoft Access. WPS Office is an alternative for documents, spreadsheets, and presentations.




