Others

Automatically Requery a Microsoft Access Form After Saving a Record

Adam DavisAdam Davis Nov 25, 2026 869 views

Question details

Automatically update an Access form after a new record is saved through another form.

Automatically Requery an Access Form After Saving a Record
Product
Microsoft Access
Device & OS
not provided
Scenario
A user adds a record in a data-entry form and wants the original form, which may be nested in subforms, to display the updated record source after the entry form closes.
Observed behavior
The original form does not display the new record until its record source is requeried.
Before you start

Identify the names of the data-entry form, the form to update, and any subform controls containing it. Confirm that the new record is saved before the data-entry form closes and that it matches the original form's record source and filters.

Solution 1Recommended

Open the data-entry form as a dialog, then requery the original form

Use this approach when a button on the original form opens the data-entry form.

Opening Form2 in dialog mode pauses the calling VBA procedure until Form2 is closed or hidden. The requery then runs on the form containing the button.

1
Open the button event

Open Form1 in Design View, select the button that opens Form2, and choose its On Click event in the Property Sheet. Open the VBA code builder.

2
Open Form2 and requery

In the button's Click procedure, use these statements, replacing Form2 with the data-entry form's name: DoCmd.OpenForm "Form2", DataMode:=acFormAdd, WindowMode:=acDialog Me.Requery

3
Save and test

Save the form, switch to Form View, click the button, add and save a record, and close Form2. Check that Form1 displays the new record.

Open the data-entry form as a dialog, then requery the original form
For a button on a parent form: Replace Me.Requery with Me.YourSubformControl.Form.Requery when the form to update is directly contained in a subform control on the button's parent form. Use the control's name, which may differ from the source form's name; deeper nesting requires the full control path.
Free Microsoft Office alternative

Work with Office documents and spreadsheets in WPS Office

WPS Office is a free, lightweight, easy-to-use alternative for working with compatible Office documents. Its familiar interface helps you move everyday document and spreadsheet work to WPS, though it does not fix or replace Microsoft Access form events.

Use a familiar interface for everyday office tasks.Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Review tabular data in WPS Spreadsheets outside an Access form.Use a lightweight office suite for documents, spreadsheets, and presentations.
QA img-9

Frequently Asked Questions

Why does the new record not appear after I close the entry form?

The original form may still be displaying its previous record source results. Requery it after the entry form closes, and check that the saved record meets the original form's query criteria and filters.

How do I requery a form inside a subform control?

From the parent form's VBA code, use Me.YourSubformControl.Form.Requery. Replace YourSubformControl with the name of the control containing the target form, not necessarily the source form's name.

Does a requery move the current record?

Requerying can move the record pointer to the first record. If users need to return to a particular record, retain its primary key and use it to find the record after the requery.

Will the dialog approach work if the entry form is hidden instead of closed?

Yes. Code after DoCmd.OpenForm with WindowMode:=acDialog resumes when the dialog form is hidden or closed, so make sure the record has been saved before either action.