I have the following procedure call in vb6:
dim rs as adodb.command
dim cnn as adodb.connection
with rs
set .activeconnection = cnn
.CommandType = adCmdStoredProc
.CommandText = "sp_qryUpdate"
.CommandTimeout = 0
.Parameters("@uidbatch").value = lngBatchID
.Execute , , adExecuteNoRecords
end with
I receive the error "Object variable or with block variable not set"
the error is thrown after the .activeconnection is set
any ideas what this means? the connection string i'm receiving is correct.