You'll need to store the date when the report was printed in a table, and
then retrieve it again before you print the report again
Dim MyFlter As String
MyFilter = "[DateFieldNameInTable] > #" & DlookUp("FieldName","TableName") &
"#"
Docmd.OpenReport "ReportName" , , , MyFilter
Docmd.RunSQL "UPDATE TableName SET TableName.FieldName = Date()"
===========================
Unless you have another way to track which records were last to be printed,
then use it.
For example a counter
Dim MyFlter As String, MaxRecord as Long
MaxRecord = DlookUp("FieldName", "TableName")
MyFilter = "[DateFieldNameInTable] > " & MaxRecord
Docmd.OpenReport "ReportName" , , , MyFilter
Docmd.RunSQL "UPDATE TableName SET TableName.FieldName = " & MaxRecord
--
Good Luck
BS"D
Dave said:
I want to be able to print a "product order" report but i only want it to
include "products" that have been added since the last report was printed.