If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Runtime Error 3704

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-04, 19:43
vamsy vamsy is offline
Registered User
 
Join Date: Apr 2004
Posts: 18
Question Runtime Error 3704

Hi,
I am trying to run one VB6.0 application it is giving me the error " Run time error 3704 Operation is not allowed when the object is closed" earlier i had this problem by fixing the DSN name of the SQL Server, now i fixed that too but still i am getting this error.. what could be the reason.. appreciate your help
Thanks
Reply With Quote
  #2 (permalink)  
Old 08-19-04, 19:09
SCIROCCO SCIROCCO is offline
Registered User
 
Join Date: Mar 2004
Location: www.scirocco.ca
Posts: 346
I cannot be more specific in the answer as you have not provided any code. But to give you a general idea, certain objects like for example an ADO Recordset cannot call certain methods if the object hasn't been previously been opened. i.e. If I code rs.Close before having coded rs.Open the rs.Close command would raise an error. The best method to solve your problem would be to step through your code find out where the error occurs and see if the object is open.
__________________
http://www.scirocco.ca/images/banner...occobanner.gif

Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!

Or try our Ask An Expert service to answer any of your questions!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On