Automatically Requery a Microsoft Access Form After Saving a Record
Question details
Automatically update an Access form after a new record is saved through another form.

- 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.
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.
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.
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.
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
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.

Requery the original form from the data-entry form's Close event
Use this approach when the data-entry form should update an open original form whenever it closes.
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.

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.




