lovesirius12
08-17-2005, 05:17 AM
can you tell what might be the problem here?
the error is - ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.
ctr and cnt are variables, cone is my adodb.connection
for ctr = 0 to cnt
set vanny=server.createobject("adodb.recordset")
p = prod(ctr)
q = quan(ctr)
c = cost(ctr)
sql = "insert into orderinvent (clientcode, product, quantity, dateorder, price) values (" & code & ",'" & p & "','" & q & "'," & md & "," & c & ")"
vanny.open sql, cone
vanny.close
set vanny = nothing
Next
the error is - ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.
ctr and cnt are variables, cone is my adodb.connection
for ctr = 0 to cnt
set vanny=server.createobject("adodb.recordset")
p = prod(ctr)
q = quan(ctr)
c = cost(ctr)
sql = "insert into orderinvent (clientcode, product, quantity, dateorder, price) values (" & code & ",'" & p & "','" & q & "'," & md & "," & c & ")"
vanny.open sql, cone
vanny.close
set vanny = nothing
Next