<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RecordSets in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793980#M30516</link>
    <description>I have not been able to find a way to send SQL to a dataset.&lt;BR /&gt;
You can use the Filter method but that isn't as robust as SQL.&lt;BR /&gt;
&lt;BR /&gt;
I sure hope someone responds with a better answer than that.&lt;BR /&gt;
&lt;BR /&gt;
&lt;CADDIE75&gt; wrote in message news:5364761@discussion.autodesk.com...&lt;BR /&gt;
Hi there all,&lt;BR /&gt;
&lt;BR /&gt;
I'm using dynamic recordsets, created at runtime of my project.&lt;BR /&gt;
&lt;BR /&gt;
Does anybody know if I can perform SQL-statemants on them, and how...I don't &lt;BR /&gt;
use a Connection for the recordsets&lt;BR /&gt;
&lt;BR /&gt;
I can process the recordset and do some simple sorting and so..but if I &lt;BR /&gt;
could use SQL statements it would be a lot easier.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
sample of the construction of the recordsets:&lt;BR /&gt;
Private Selection_Records As ADODB.Recordset&lt;BR /&gt;
Set Selection_Records = New ADODB.Recordset&lt;BR /&gt;
&lt;BR /&gt;
    With Selection_Records.Fields&lt;BR /&gt;
        .Append "IdIndex", adInteger&lt;BR /&gt;
&lt;BR /&gt;
etc....and then AddNew values...&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.&lt;/CADDIE75&gt;</description>
    <pubDate>Tue, 17 Oct 2006 19:45:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-10-17T19:45:53Z</dc:date>
    <item>
      <title>RecordSets</title>
      <link>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793979#M30515</link>
      <description>Hi there all,&lt;BR /&gt;
&lt;BR /&gt;
I'm using dynamic recordsets, created at runtime of my project.&lt;BR /&gt;
&lt;BR /&gt;
Does anybody know if I can perform SQL-statemants on them, and how...I don't use a Connection for the recordsets&lt;BR /&gt;
&lt;BR /&gt;
I can process the recordset and do some simple sorting and so..but if I could use SQL statements it would be a lot easier.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
sample of the construction of the recordsets: &lt;BR /&gt;
Private Selection_Records As ADODB.Recordset&lt;BR /&gt;
Set Selection_Records = New ADODB.Recordset&lt;BR /&gt;
&lt;BR /&gt;
    With Selection_Records.Fields&lt;BR /&gt;
        .Append "IdIndex", adInteger&lt;BR /&gt;
&lt;BR /&gt;
etc....and then AddNew values...&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.</description>
      <pubDate>Tue, 17 Oct 2006 19:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793979#M30515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-17T19:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: RecordSets</title>
      <link>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793980#M30516</link>
      <description>I have not been able to find a way to send SQL to a dataset.&lt;BR /&gt;
You can use the Filter method but that isn't as robust as SQL.&lt;BR /&gt;
&lt;BR /&gt;
I sure hope someone responds with a better answer than that.&lt;BR /&gt;
&lt;BR /&gt;
&lt;CADDIE75&gt; wrote in message news:5364761@discussion.autodesk.com...&lt;BR /&gt;
Hi there all,&lt;BR /&gt;
&lt;BR /&gt;
I'm using dynamic recordsets, created at runtime of my project.&lt;BR /&gt;
&lt;BR /&gt;
Does anybody know if I can perform SQL-statemants on them, and how...I don't &lt;BR /&gt;
use a Connection for the recordsets&lt;BR /&gt;
&lt;BR /&gt;
I can process the recordset and do some simple sorting and so..but if I &lt;BR /&gt;
could use SQL statements it would be a lot easier.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
sample of the construction of the recordsets:&lt;BR /&gt;
Private Selection_Records As ADODB.Recordset&lt;BR /&gt;
Set Selection_Records = New ADODB.Recordset&lt;BR /&gt;
&lt;BR /&gt;
    With Selection_Records.Fields&lt;BR /&gt;
        .Append "IdIndex", adInteger&lt;BR /&gt;
&lt;BR /&gt;
etc....and then AddNew values...&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.&lt;/CADDIE75&gt;</description>
      <pubDate>Tue, 17 Oct 2006 19:45:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793980#M30516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-17T19:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: RecordSets</title>
      <link>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793981#M30517</link>
      <description>as Mark Johnston said...&lt;BR /&gt;
&lt;BR /&gt;
check out&lt;BR /&gt;
.Sort&lt;BR /&gt;
.Filter = sSql&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I tried using recordset that way but my selection criteria was too&lt;BR /&gt;
complicated to handle with a simple filter&lt;BR /&gt;
but maybe it will work for you&lt;BR /&gt;
I ended up putting the records in a .mdb file and used conn.Execute (sSql)&lt;BR /&gt;
for more complicated Select Where Order By etc statements&lt;BR /&gt;
it was just as easy to write a db on the fly as it was to write the&lt;BR /&gt;
recorset - creating fields/types etc and much more flexible&lt;BR /&gt;
hth&lt;BR /&gt;
Mark&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CADDIE75&gt; wrote in message news:5364761@discussion.autodesk.com...&lt;BR /&gt;
Hi there all,&lt;BR /&gt;
&lt;BR /&gt;
I'm using dynamic recordsets, created at runtime of my project.&lt;BR /&gt;
&lt;BR /&gt;
Does anybody know if I can perform SQL-statemants on them, and how...I don't&lt;BR /&gt;
use a Connection for the recordsets&lt;BR /&gt;
&lt;BR /&gt;
I can process the recordset and do some simple sorting and so..but if I&lt;BR /&gt;
could use SQL statements it would be a lot easier.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
sample of the construction of the recordsets:&lt;BR /&gt;
Private Selection_Records As ADODB.Recordset&lt;BR /&gt;
Set Selection_Records = New ADODB.Recordset&lt;BR /&gt;
&lt;BR /&gt;
    With Selection_Records.Fields&lt;BR /&gt;
        .Append "IdIndex", adInteger&lt;BR /&gt;
&lt;BR /&gt;
etc....and then AddNew values...&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.&lt;/CADDIE75&gt;</description>
      <pubDate>Tue, 17 Oct 2006 19:59:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793981#M30517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-17T19:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: RecordSets</title>
      <link>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793982#M30518</link>
      <description>Thanks for the replies,&lt;BR /&gt;
&lt;BR /&gt;
I already use the Filter option.&lt;BR /&gt;
But I need for example all unique values of a specific field, &lt;BR /&gt;
now I use &lt;BR /&gt;
1. the Filter option to limit the recordset to a specific criteria&lt;BR /&gt;
2. sort the specific field&lt;BR /&gt;
3. retrieve all unique values to a Array.&lt;BR /&gt;
&lt;BR /&gt;
Maybe I'll use a dummy mdb file to save data to by copying the empty dummy to the user temp-dir with each AutoCAD Session with unique filename 00001.mdb or so.....if needed.&lt;BR /&gt;
&lt;BR /&gt;
MP, how do you cope with the fact that another acad-session could use the table in the database.....or is you're data static...&lt;BR /&gt;
&lt;BR /&gt;
Mike</description>
      <pubDate>Tue, 17 Oct 2006 21:04:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793982#M30518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-17T21:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: RecordSets</title>
      <link>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793983#M30519</link>
      <description>&lt;CADDIE75&gt; wrote in message news:5364921@discussion.autodesk.com...&lt;BR /&gt;
Thanks for the replies,&lt;BR /&gt;
&lt;BR /&gt;
I already use the Filter option.&lt;BR /&gt;
But I need for example all unique values of a specific field,&lt;BR /&gt;
now I use&lt;BR /&gt;
1. the Filter option to limit the recordset to a specific criteria&lt;BR /&gt;
2. sort the specific field&lt;BR /&gt;
3. retrieve all unique values to a Array.&lt;BR /&gt;
&lt;BR /&gt;
Maybe I'll use a dummy mdb file to save data to by copying the empty dummy&lt;BR /&gt;
to the user temp-dir with each AutoCAD Session with unique filename&lt;BR /&gt;
00001.mdb or so.....if needed.&lt;BR /&gt;
&lt;BR /&gt;
MP, how do you cope with the fact that another acad-session could use the&lt;BR /&gt;
table in the database.....or is you're data static...&lt;BR /&gt;
&lt;BR /&gt;
right, my data is static&lt;BR /&gt;
my prog is only one that knows about db, writes it/reads it/ not multi user&lt;BR /&gt;
so very simple ... lots of issues i don't need to deal with i guess&lt;BR /&gt;
:-)&lt;BR /&gt;
Lucky for me!!!&lt;BR /&gt;
&lt;BR /&gt;
Mark&lt;/CADDIE75&gt;</description>
      <pubDate>Tue, 17 Oct 2006 21:36:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/recordsets/m-p/1793983#M30519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-17T21:36:44Z</dc:date>
    </item>
  </channel>
</rss>

