Code:
Dim db As Database
Dim rst As Recordset
Dim Agency As String
Set db = CurrentDb
Set rst = db.OpenRecordset("tblBordereauxAgencies")
Do While Not rst.EOF
Agency = rst.Fields("agencycode")
PrintBordereauxStatements (Agency)
rst.MoveNext
Loop
The idea is that it opens a report in preview mode for each agency in the table (currently 6) which would allow the user to print the report or close it before moving on to the next, however, it only opens the report with the data from the last value in the table.
How can I correct this?
Happiness is...not getting what you want but wanting what you have already got