我收到以下错误
VB Runtime Error 2282: The format in which you are attempting to output the current object is not available
当我尝试运行此VBA字符串时:
Private Sub Print_Click()
DoCmd.OutputTo acOutputReport, "File_name", acFormatPDF, MyPath & MyFilename, True
End Sub
编辑
MyPath
来自红色箭头。
MyFilename
来自蓝色箭头。