Results 1 to 4 of 4

Thread: SQL on In-Memory Recordsets [resolved]

  1. #1

    Thread Starter
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    SQL on In-Memory Recordsets [resolved]

    I have some in-memory only ADO recordsets in VB6 and I am wondering if it is possible to Execute SQL against this data. The recordsets were created on the fly, so there is no source database to execute the code against.

    What I am trying to do is run commands like the ones below against the recordset

    "Select * From <this recordset> where ID=75"

    "Select Distinct(ID) From <ThisRecordset>"

    Thanks for your help,
    Last edited by Negative0; Oct 13th, 2003 at 01:16 PM.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    You cannot execute sql queries against a recordset. Use the different properties that are available - Filter, Find, Seek

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by brucevde
    You cannot execute sql queries against a recordset. Use the different properties that are available - Filter, Find, Seek
    I second that.... it would be nice if you could do that..... but, alas, it is not possible.

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Thanks guys...

    I'll just use the filter and approach the problem from a different angle.

Posting Permissions

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



Click Here to Expand Forum to Full Width