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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor is not open. SQL VB6

Status
Not open for further replies.

csjoseph

MIS
Jan 2, 2001
247
US
I am using VB6 and SQL 7.0 and ADO 2.6.

I have a form with a datagrid. The table has a Profile Name field and and Record Number field. The first profile must have a 0 for record number, any subsequent can have any other number. There is a trigger that checks to make sure that there is one profile that the record number is 0. Otherwise you get a user defined error.

Now the problem.

I open the form and the ADO connection. Set the datagrid source to the record set. I change the record number to 5, I try to update, and get the error. Good so far. Now I change the record number back to 0 and try to update. I get "Cursor is not open" Error. This is baffling. I try the same thing through enterprise manager and have no problem, after changing rec number back to 0 I am allowed to update.

Please help. Do you need more info? Let me know.
 
Please mail me ur question with more information I'll do my best to help you. Mail me to: fdalorzo@costarricense.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top