我在Access 2007 SP3中出现了一个奇怪的问题。当我将报告导出到pdf时,我得到我不想要的“输出到”提示,在我的代码中有什么我做错了?访问VBA outputto pdf“输出到”提示
OverViewFile = DLookup("ExportPath", "dbo_Defaults") & "PC" & Format(Now(), "ddmmyy") & Format(Now(), "hhmm") & ".pdf"
DoCmd.OutputTo acOutputReport, "Rpt_ExportBPC", acFormatPDF, OverViewFile, False
如果我错过了任何事情,请让我知道。
你从'Debug.Print OverViewFile'得到什么? – HansUp
嗨,什么都没有发生,它只是运行它没有做任何事情? – user2294977
您是否在即时窗口中检查“Debug.Print”的输出?你可以去那里按Ctrl + g – HansUp