G
Guest
Hi folks,
My default printer is PDFWriter. I have the following code to export my
report to pdf format. The code is working perfect in Access 97. It gave me
a hard time when I used in Access XP (2002). It output my report to
c:\temp\rpt1.pdf and then it output my report again and have a pop up window
for the file name. Could anyone tell me the way to fix it?
Thanks in advance.
Tim.
Public Sub test()
SendKeys "c:\temp\rpt1.pdf" & "{ENTER}", False
DoCmd.OpenReport "rpt1", acViewNormal
End Sub
My default printer is PDFWriter. I have the following code to export my
report to pdf format. The code is working perfect in Access 97. It gave me
a hard time when I used in Access XP (2002). It output my report to
c:\temp\rpt1.pdf and then it output my report again and have a pop up window
for the file name. Could anyone tell me the way to fix it?
Thanks in advance.
Tim.
Public Sub test()
SendKeys "c:\temp\rpt1.pdf" & "{ENTER}", False
DoCmd.OpenReport "rpt1", acViewNormal
End Sub