Use Access Form Values in an Append Query Without Prompts
Question details
Run an append query from a form using the date and name values already entered on the form.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A user filters records by date and name on a form, then launches an append query with a command button.
- Observed behavior
- The append query prompts for the date and name again instead of using the form values.
Open the form in Design View and check its name and the Name property of each date and name control. Identify the source fields and destination table for the append query; their names depend on your database.
Reference the open form controls in the append query
Use this approach to reuse the form's current criteria when the command button runs the query.
Access can read values from bound or unbound controls on an open form using Forms![FormName]![ControlName]. Replace the example names below with the actual form and control names.
In the Navigation Pane, right-click the query and select Design View. Add the source fields needed to identify and append the records.
In the Criteria row under the source date field, enter Forms![FormName]![txtDate]. Under the source name field, enter Forms![FormName]![txtName]. Use your actual form and control names, not the labels displayed next to the controls.
With the form open and its criteria filled in, use Design > Select and then View > Datasheet View to check which source records match. If the date field includes times, an exact date match may not include all records from that day.
Return to Design View, choose Design > Append, and select the destination table. In the Append To row, map each source field to the appropriate destination field, then save the query.
Keep the form open, enter the date and name, and click the command button configured to run the saved query. Review the append confirmation and verify the added records in the destination table.

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 compatibility make it easy to move existing files. It does not replace Access or run Access append queries.

Frequently Asked Questions
Can an append query use values from unbound form controls?
Yes. With the form open, enter a reference such as Forms![FormName]![ControlName] in the query's Criteria row. The control does not need to be bound to a table field.
Why does Access still ask me to enter a parameter?
In query Design View, check each form reference and field name for spelling errors. Verify the control's Name property in the form's property sheet and make sure the form is open when the query runs.
How can I check which records will be appended?
In query Design View, choose Design > Select and open Datasheet View while the form is open. Review the matching records before changing the query back to an append query.
Why might a date criterion miss records from the same day?
If the source date field stores a time as well as a date, an exact match to a date-only control may exclude records with a time value. Adjust the query to use a date range when that matches your data and goal.




