I have a report which produces one page of output for each line of data in my table.
I use criteria to select which records I want to appear in the report.
All works well with this.
What I now want to do is to run a query at the end of each page (hence using On Page) which updates the data record to identify the time it was printed. I use the criteria [Reports]![ReportName]![UniqueField] ina query to do this.
I found that it doesn’t work for the first record in the report. Instead it has already moved on to the next record before the On Page query has been run. This seems to go against what I would have thought ON PAGE meant – using the details on the current page. (I checked the current value of [UniqueField] via a msgbox run before and after the query was run).
Am I doing something wrong – or is this the way this work?
Any other solutions to update the records as they are printed?
I thought about running the query after the report was produced with the same critera, but realised you can’t include criteria against a cmddo.openquery
John