+ Reply to Thread
Results 1 to 3 of 3

Error with recordset from SQL query. Run-time error '3704'

  1. #1
    Registered User
    Join Date
    04-30-2010
    Location
    Wales, Boyo
    MS-Off Ver
    Excel 2007
    Posts
    42

    Error with recordset from SQL query. Run-time error '3704'

    I have a routine that runs a sql query for each cell in the range. I am running three different instances of it for 3 different ranges.The first two instances have simple sql queries and work fine (no variables declared)

    The third instance uses a more complex query and I get an error:

    Run-time error '3704':

    Operation is not allowed when the object is closed.

    Has anyone got any pointers on how to get to the bottom of the cause here.

    The routine is below:

    Please Login or Register  to view this content.
    Last edited by TheCyrusVirus; 05-14-2010 at 03:44 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Error with recordset from SQL query. Run-time error '3704'

    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    04-30-2010
    Location
    Wales, Boyo
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Error with recordset from SQL query. Run-time error '3704'

    Thanks again Romperstomper

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1