zadjali2000
01-28-2003, 11:44 AM
Hi everybody,
I would like to open a recordset inside a loop like this:
while not rs1.eof
sqlstmt = "select * from tbl_name where id = '" & rs1("needed_field") & "'
rs1.movenext
wend
------------------------------
Now the problem that it always says "Operation is not allowed when the object is open".
I remember that in Visual basic 6 i can open the recordset and add this code "rs1.ActiveConnection = Nothing" in order to do the same thing but when i tried it I got some new error "Operation is not allowed when the object is CLOSED"
So please can any one help me in this:confused:
I would like to open a recordset inside a loop like this:
while not rs1.eof
sqlstmt = "select * from tbl_name where id = '" & rs1("needed_field") & "'
rs1.movenext
wend
------------------------------
Now the problem that it always says "Operation is not allowed when the object is open".
I remember that in Visual basic 6 i can open the recordset and add this code "rs1.ActiveConnection = Nothing" in order to do the same thing but when i tried it I got some new error "Operation is not allowed when the object is CLOSED"
So please can any one help me in this:confused: