ADO Execute command
Posted on 2002-07-16
I want to use an ADO "execute" command to add new records into a talbe,something like this:
'presume I've already got a connection called cn
dim rs as Recordset
set rs=cn.Execute("insert into "Table1" (column1,column2) values ('something','and more')")
This command works fine for adding record to the table. Now, the problem is that I also want to use the rs which I expect to be a valid recordset returned by the command. But I always get a error message saying that "object is closed.".
Would anyone know what the problem is?