Export different report to different folders

maabbas

Registered User.
Local time
Today, 02:15
Joined
Feb 15, 2012
Messages
69
I have some reports with criteria and I want these report to save as PDF in different folders on network

Currently I am using the button and following code to export report.
Code:
Private Sub Command1_Click()
DoCmd.OutputTo acOutputReport, "Report1", acformatepdf, "C:\Users\TestUser1\Desktop\Test1.pdf", True
DoCmd.OutputTo acOutputReport, "Report2", acformatepdf, "C:\Users\TestUser2\Desktop\Test2.pdf", True
End Sub

Is there any way someone help me to figure out how to do this operation automatically on specific time.

Thanks
 
I typically create a limited copy of the db that does the desired process on startup and then quits, and call that from Windows Scheduled Tasks.
 
I typically create a limited copy of the db that does the desired process on startup and then quits, and call that from Windows Scheduled Tasks.

Thanks for reply, will you please explain little more?
 

Users who are viewing this thread

Back
Top Bottom