【发布时间】:2016-12-06 17:13:54
【问题描述】:
我的代码在到达以下代码的第 4 行时因上述错误而失败。我之前在我的程序中使用过同样的格式,它工作得很好。如果需要更多代码来解决错误,我很乐意发布。谢谢。
With rsTIP19
.ActiveConnection = cnTIP
.Open "exec usp_Service_Data_Query_QA"
ThisWorkbook.Sheets("Service_Data").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).CopyFromRecordset rsTIP19
.Close
End With
【问题讨论】:
-
你的存储过程确定返回结果集吗?
-
@TimWilliams 是的,它在 sql 中完美运行
标签: sql vba excel stored-procedures