Microsoft VBScript 运行时错误:需要对象:“响应”。任务中的异常:非零退出代码退出代码(1)描述:不正确的功能

问题描述 投票:0回答:0
    ' set the local arguments
    ' for this report the args are the stored procedure call
response.write rptVarReportsArgs
    Set oRs = oConn.Execute(rptVarReportsArgs)
        If Not oRs.EOF Then
            wscript.echo "Control is in if condition"
            ProdInvAry_nvi = oRs.GetRows()
            CtrField   = uBound(ProdInvAry_nvi, 1)
            TotalRecs  = uBound(ProdInvAry_nvi, 2)+1
        Else
            wscript.echo "Control is in else condition"
            ProdInvAry_nvi = ""
        End If      
    oRs.Close

我在运行脚本和控制时遇到这个错误

Set oRs = oConn.Execute(rptVarReportsArgs)
这一行没有执行,也没有从函数中获取记录
ProdInvAry_nvi = oRs.GetRows()
我需要帮助解决这个错误。谢谢

vba vb.net vbscript vb6 adsutil.vbs
© www.soinside.com 2019 - 2024. All rights reserved.