Acess VBA:运行时错误2282

时间:2018-06-27 10:35:05

标签: access-vba

我收到以下错误

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来自蓝色箭头。

enter image description here

0 个答案:

没有答案