Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 3219 "operation not allowed" after ADO data grid updated

Status
Not open for further replies.

AMHCLH

Programmer
Nov 26, 2002
23
US
I am updating my programs to use ADO. I have bound my ADO recordset to a datagrid and allow the recordset to be updated automatically. The problem is after an update in the grid- the next time I try to close the recordset and open it for another select, I get error 3219 "operation not allowed in this context". I added code found in this forum
If rst2.State = adStateOpen Then rst2.Close

but I still get the error on the rst2.close. The rst2.State value comes back as one, but it won't close the recordset. Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top