I have a report that I want to delete once print preview is closed by the user. I tried this:
And this puts me in an endless loop that I must break out of. How can I code this?
Thanks,
Tux
Code:
If stDocRemote = "1" Then 'delete external reports Do While CurrentProject.AllReports(stDocName).IsLoaded Loop DoCmd.DeleteObject acReport, stDocName End If
Thanks,
Tux
Comment