Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: M Moore
  Where is M Moore?
 Niagara Falls
 New York - United States
 M Moore
 Tags
Subject: HELP: VFP CA using ADO issuing REQUERY()
Thread ID: 252632 Message ID: 252632 # Views: 65 # Ratings: 0
Version: Visual FoxPro 9 Category: ODBC, ADO and OLEDB
Date: Friday, February 05, 2010 9:18:18 PM         
   


Have cursor adapter that use ADO to connect to SQL. If I open my cursor adapter , connect to SQL, "CURSORFILL(.t.,.t.)", then close the connection (ca.oConn.CLOSE()), if I RECONNECT (ca.oConn.Open()) and then try to REQUERY() (or CA.CursorRefresh()), I get an error from the record set "ADODB.Recordset : Operation is not allowed when the object is closed." I have already tried putting "CURSORFILL() in the "CursorRefresh()" method, but this is bad, since CursorFill() actually closes the table and then creates the table and fills it with data. This is bad if my cursor is bound to control on a form. I know, I can unbind the controls on the form, but this is not my prefered method. Anyone know what I might be doing wrong or missing. When I re-open the connection object, I just call Ca.oConn.OPEN() (oConn = adodb_connection). The object references are never cleared, all I ever do is call the "CLOSE" method on the connection object.

TIA



COMPLETE THREAD
HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/5/2010 9:18:18 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by Mike Gagnon @ 2/6/2010 12:05:16 AM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/8/2010 3:29:06 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/8/2010 4:37:58 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/8/2010 5:58:08 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by Borislav Borissov @ 2/8/2010 6:14:48 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/8/2010 7:21:31 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by Borislav Borissov @ 2/8/2010 8:44:23 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/9/2010 9:21:11 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by Borislav Borissov @ 2/10/2010 8:20:22 AM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/10/2010 2:35:50 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by Borislav Borissov @ 2/10/2010 3:03:14 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/10/2010 3:20:08 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by Borislav Borissov @ 2/10/2010 5:41:17 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/11/2010 5:50:45 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by Borislav Borissov @ 2/11/2010 6:28:13 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/24/2010 5:34:01 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by Borislav Borissov @ 2/24/2010 5:38:09 PM
RE: HELP: VFP CA using ADO issuing REQUERY() Posted by M Moore @ 2/24/2010 7:33:02 PM