Archiving is a two step process:
- Run an append query to copy the records to a target table.
- Run a delete query to remove them from the original table.
To make an action query:
1. Create a query into your table.
2. Change it to an Append query (Append on Query menu).
3. To specify the date, create a form named (say) "MyForm", with a text box
named "Mytextbox". Set the Format property of the text box to Short Date so
Access knows it's a date.
4. In the Criteria row under your date field, enter:
< [Forms]![MyForm].[Mytextbox]
5. Make a similar delete query.
6. Run them both.
If it is important to you that the delete query does not fire if the append
query failed, you may want to write code that wraps both action queries in a
transaction, so you can rollback if necessary. Details of how to do this in
article:
Archive: Move records to another table
at:
http://allenbrowne.com/ser-37.html