Set rsPlanID = Server.CreateObject("ADODB.Recordset")
rsPlanID.CursorLocation = adUseClient
strSQL = "SELECT PlanID FROM ATTJournals WHERE ATTUserDataID = " & ATTUserDataID
rsPlanID.Open strSQL, m_objConn, adOpenStatic, adLockOptimistic
If Not rsPlanID.EOF Then
response.Write "New PlanID:" & rsPlanID("PlanID")
End If
Mã trên nằm trong cổ điển.Lỗi ADODB.Recordset '800a0bb9': Đối số sai loại
Tôi nhận được lỗi sau:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
dows ai biết nguyên nhân lỗi này và làm thế nào để sửa chữa nó?
Bạn có thể đặt điều này trong global.asa (ví dụ: một địa điểm, thay vì hàng trăm tệp .asp) không? – NealWalters
@NealWalters Có, trên thực tế tôi rất muốn giới thiệu nó. – Lankymart