<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015732" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015732</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Solution</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/please-help-vbscript-exception#comment-1091522</link>
    <description> &lt;p&gt;OK&lt;br /&gt;
Here is the deal. I feel like a moron for not recognizing what was going on.&lt;/p&gt;
&lt;p&gt;The problem is in this line:&lt;/p&gt;
&lt;p&gt;SQL = &quot;select max(value.value)&quot; &lt;/p&gt;
&lt;p&gt;If I remove the max() function everything works fine.&lt;/p&gt;
&lt;p&gt;When this error occured no other .ASP pages could perform a&lt;br /&gt;
Recordset.Open until I shut the machine down. Then I could run those pages until I ran this one again.&lt;/p&gt;
&lt;p&gt;I would get that nasty error.&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 Oct 2001 23:14:54 +0000</pubDate>
 <dc:creator>mycoolross</dc:creator>
 <guid isPermaLink="false">comment 1091522 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/please-help-vbscript-exception#comment-1091270</link>
    <description> &lt;p&gt;I figured that might be a typo...&lt;/p&gt;
&lt;p&gt;The only other thing I can suggest would be to experiment with different cursortypes,locktypes, and location types. Maybe specifiy adUseClient?&lt;/p&gt;
&lt;p&gt;You should probably rewrite that if it wasn&#039;t your code to start with, ADO is so much fun anyways, it&#039;s not like work! (and if you believe that....)&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Oct 2001 15:39:51 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1091270 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Typo</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/please-help-vbscript-exception#comment-1091268</link>
    <description> &lt;p&gt;Peter,&lt;/p&gt;
&lt;p&gt;I changed some of the code (variable names) to make it easier to read. I did miss that one. CN was ConnCurrentbid, and they were all the same.&lt;/p&gt;
&lt;p&gt;You are correct there are two for each loops in this code. I may just start over and make this code a little neater.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Oct 2001 14:55:50 +0000</pubDate>
 <dc:creator>mycoolross</dc:creator>
 <guid isPermaLink="false">comment 1091268 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/please-help-vbscript-exception#comment-1091267</link>
    <description> &lt;p&gt;The first thing that I noticed was this line:&lt;/p&gt;
&lt;p&gt;CN=ConnCurrentBid &amp;amp; &quot;dbq=&quot; &amp;amp; server.mappath(accessdb) &lt;/p&gt;
&lt;p&gt;What is ConnCurrentBid?, shouldn&#039;t this line read:&lt;/p&gt;
&lt;p&gt;CN = CN &amp;amp; &quot;dbq=&quot; &amp;amp; server.mappath(accessdb) &lt;/p&gt;
&lt;p&gt;Also, you seem to be looping through the recordset more than once, you should try to limit this. If you have to then maybe you should look into using the GetRows method, this will improve performance since you can close your recordset early and use the data through arrays.&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Oct 2001 14:53:01 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1091267 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Source</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/please-help-vbscript-exception#comment-1091266</link>
    <description> &lt;p&gt;OK how do I get a cool avatar? I do not have any available.&lt;/p&gt;
&lt;p&gt;I am doing great!!! and you?&lt;/p&gt;
&lt;p&gt;Here is a snippet. I removed the stuff that did not have to do with the data access. This is the first time I have had this problem. I am working with pre-existing code. It may be best for me to just start over on the data access portion.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;- Mike&lt;/p&gt;
&lt;p&gt;CN=&quot;driver={microsoft access driver (*.mdb)};&quot;&lt;br /&gt;
CN=CN &amp;amp; &quot;dbq=&quot; &amp;amp; server.mappath(accessdb)&lt;br /&gt;
set RecordSet = server.createobject(&quot;ADODB.Recordset&quot;)&lt;br /&gt;
SQL = &quot;select max(value.value)&quot;&lt;br /&gt;
RecordSet.Open SQL, CN, adOpenStatic&lt;/p&gt;
&lt;p&gt;if RecordSet.eof or RecordSet.bof then&lt;br /&gt;
response.write &quot; No results found...&quot;  &lt;/p&gt;
&lt;p&gt;end if&lt;br /&gt;
%&amp;gt;&lt;/p&gt;
&lt;p&gt;&#039;&#039;&#039;&#039; I HAVE TAKEN THE HTML OUT HERE&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Write the field names&lt;br /&gt;for each table_element in RecordSet.fields &lt;br /&gt;&lt;br /&gt;&#039;&#039;&#039;&#039;&#039;&#039;&amp;nbsp;&amp;nbsp; DO YOUR STUFF&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;RSCurrentBid.movefirst&lt;br /&gt;do while not RecordSet.eof&lt;br /&gt;for each cell in RecordSet.fields&lt;br /&gt; &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&#039; DO MORE STUFF LOOP ETC.&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Oct 2001 14:41:45 +0000</pubDate>
 <dc:creator>mycoolross</dc:creator>
 <guid isPermaLink="false">comment 1091266 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/please-help-vbscript-exception#comment-1091263</link>
    <description> &lt;p&gt;Hey Mike, how&#039;s it going?&lt;/p&gt;
&lt;p&gt;First off you should avoid storing ADO recordsets in a session, especially if it&#039;s a large one. Are you trying to pass the recordset between pages?&lt;/p&gt;
&lt;p&gt;Maybe if you could post the source code we could help you better.&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Oct 2001 14:31:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1091263 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Recordset w/o Session Variable?</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/please-help-vbscript-exception#comment-1091260</link>
    <description> &lt;p&gt;Mark,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. You may have helped me more than you know. How would you loop through a recordset if you do not store it in a session variable?&lt;/p&gt;
&lt;p&gt;I became a member around January. I have received a lot of valuable info from this forum and I love it! I have told all my friends as well. I have been doing VB development for about the past six months. When I came back I forgot my username and password, so I had to get a new one. I am sure that makes the database admin happy!&lt;/p&gt;
&lt;p&gt;By the way the sig works! and thanks for the reply.&lt;/p&gt;
&lt;p&gt;- Mike&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Oct 2001 14:06:44 +0000</pubDate>
 <dc:creator>mycoolross</dc:creator>
 <guid isPermaLink="false">comment 1091260 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/please-help-vbscript-exception#comment-1091247</link>
    <description> &lt;p&gt;Welcome you to TWF.  I like your sig!&lt;/p&gt;
&lt;p&gt;Your storing a recordset in a session var?  I never knew you could do that.  I&#039;m sorry I don&#039;t have an answer to your problem.&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Oct 2001 04:09:54 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1091247 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
