T
ToryBennyBassiKova
I am printing to pdf files
For i = 1 To Liste4.ListCount - 1
DoCmd.OpenReport stDocName, acViewNormal, , "MXId=" & Liste4.Column(2, i)
Docmd.SelectObject acReport, stDocName
Docmd.RunCommand acCmdPrint
Docmd.Close acReport, stDocName, acSaveNo
Next i
I want to give each report a unic name as i e: Prefix & Liste4.Column(2, i)
How can I change the stDocName, so it is easy to save?
For i = 1 To Liste4.ListCount - 1
DoCmd.OpenReport stDocName, acViewNormal, , "MXId=" & Liste4.Column(2, i)
Docmd.SelectObject acReport, stDocName
Docmd.RunCommand acCmdPrint
Docmd.Close acReport, stDocName, acSaveNo
Next i
I want to give each report a unic name as i e: Prefix & Liste4.Column(2, i)
How can I change the stDocName, so it is easy to save?