0
我總是收到錯誤3704.當對象關閉時,不允許操作。錯誤3704當對象關閉時不允許操作
Dim myConnection2, RSTitleList2
Set myConnection2 = CreateObject("ADODB.Connection")
Set RSTitleList2 = CreateObject("ADODB.Recordset")
myConnection2.Open "<%=connectionString%>"
sSQL1 = "Update FileInformation SET Status = 4 Where DataDefinitionID = 147 AND CustomerID = 71"
RSTitleList2.open sSQL1, myConnection2
if RSTitleList2.BOF and RSTitleList2.EOF then
msgbox("INSERT SUCCESSFUL")
frmProcess.cmdPublish.disabled = true
Else
msgbox("Not SUCCESSFUL")
msgbox(err.Number & " | " & err.description & " | " & err.Source)
End IF
msgbox(err.Number & " | " & err.description & " | " & err.Source)
擺脫'上的錯誤繼續下一步「,你有某個地方,對於那些不知道如何正確使用它的人來說,這很不好,而且風險很大。沒有它,您現在將在嘗試打開連接的線路上遇到有用的錯誤。 –