Hi,
I have export 3 reports to the same pathway (same folder) and I have programmed automatically. The code below works fine.
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
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