Form Recordset "Object Closed"

B

Brian Korenaga

Brand new to Access and ADP, so forgive me if this is obvious.

Using Access2002, SQL2000 with bound form. I use a SQL stored
procedure to fill a ADODB recordset, then set the ADODB recordset
equal to form recordset. Then delete ADODB recordset.

My problem is that when I try to manipulate the form recordset
(example Form.RecordSet.AddNew), I get a runtime error 3704,
"Operation is not allowed when object is closed". I've tried
Form.RecordSet.Open without any change in the error message.

In a related error, if I create a new ADODB recordset and set the form
recordset equal to the new ADODB recordset. Trying to manipulate
ADODB recordset, I get the same error message.

RecordsetClone doesn't have this problem.

TIA,
Brian
 
J

J. Clay

I am not quite sure why you would be doing things this way. Typically, you
would bind the form to the Stored procedure and set any inputparameters
required by setting the form recordset equal to the stored proceedure. Once
you close the recordset, it is not going to be editable.

J. Clay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top