Export Report why always ask the pathway

le888

Registered User.
Local time
Today, 04:01
Joined
Dec 10, 2003
Messages
344
Hi,

I have export 3 reports to the same pathway (same folder) and I have programmed automatically. The code below works fine.

Code:
DoCmd.OutputTo acReport, stDocName1, acFormatTXT, "C:\Access\Tasks\project1.txt"

DoCmd.OutputTo acReport, stDocName2, acFormatTXT, "C:\Access\Tasks\project2.txt"

DoCmd.OutputTo acReport, stDocName3, acFormatTXT, "C:\Access\Tasks\project3.txt"

However, Access always asks the path way for the first output texte file and the two others export automatically to the same folder. I wonder if I can by pass the question and when I click on the button, it export automatically to the folder.

Thanks,

Le
 

Users who are viewing this thread

Back
Top Bottom