访问运行时宏失败了'退出'

时间:2017-11-01 15:09:31

标签: ms-access

当我运行一个宏时,它停止在' DoCmd.Quit acQuitSaveNone' 它说'退出现在不可用' 我需要做些什么才能纠正这个问题?

Public Function UnassignedPayments()
    Dim XFile As String

NPDateB = Date
        NPDateE = Date

        DoCmd.SetWarnings False

        XFile = "I:\Management Reports\Unassigned Payment Analysis Report.pdf"

        DoCmd.OutputTo acOutputReport, "Unassigned Payment Analysis Report", acFormatPDF, XFile
            DoCmd.Quit acQuitSaveNone
End Function

1 个答案:

答案 0 :(得分:1)

使用var elemHolder = new ElementHodler(document.getElementById('elem')); elemHolder.doSomethingToElement () ,不应该导致此错误。