<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1014119" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1014119</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1082730</link>
    <description> &lt;p&gt;I think it is working now simply because it has single quotes now.&lt;/p&gt;
&lt;p&gt;I am sure after you state equals (WHERE this =) you need to put the critera in quotes.&lt;/p&gt;
&lt;p&gt;I think just this would work:&lt;/p&gt;
&lt;p&gt;sql = &quot;select * from bibletable Where book =&#039;&quot; &amp;amp; book &amp;amp; &quot;&#039; and chapter =&#039;&quot; &amp;amp; chapter &amp;amp; &quot;&#039;&quot;&lt;/p&gt;
 </description>
     <pubDate>Tue, 22 May 2001 03:38:06 +0000</pubDate>
 <dc:creator>ShinNathan</dc:creator>
 <guid isPermaLink="false">comment 1082730 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>dunno</title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081685</link>
    <description> &lt;p&gt;Mark,&lt;/p&gt;
&lt;p&gt;I do not really know!  I just know that it works. If someone could explain it I would like to know. I may try to take one of them out see if it still works. I will try that tonight and let you know. I am really liking SQL Server at this time.&lt;/p&gt;
&lt;p&gt;Later&lt;br /&gt;
Mike&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2001 19:10:23 +0000</pubDate>
 <dc:creator>1aspfan</dc:creator>
 <guid isPermaLink="false">comment 1081685 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081684</link>
    <description> &lt;p&gt;What is the purpose to the double percent signs (%%)?&lt;br /&gt;
Shouldn&#039;t you only need one wild card?&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2001 19:00:24 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1081684 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Solution</title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081668</link>
    <description> &lt;p&gt;Alright guys, after beating my head against a wall for a few hours this is what I came up with:&lt;/p&gt;
&lt;p&gt;sql = &quot;select * from bibletable where book like&quot; &amp;amp;&quot; &#039;%%&quot; &amp;amp; u_input &amp;amp; &quot;%%&#039; &quot; &amp;amp; _&lt;br /&gt;
&quot;and chapter like &quot; &amp;amp;&quot; &#039;%%&quot; &amp;amp; chapter &amp;amp; &quot;%%&#039; &quot; &amp;amp; &quot;and verse like &quot; &amp;amp;&quot; &#039;%%&quot; &amp;amp; verse &amp;amp; &quot;%%&#039; &quot; &amp;amp; &quot;and result like &quot; &amp;amp;&quot; &#039;%%&quot; &amp;amp; keywords &amp;amp; &quot;%%&#039; &quot;&lt;/p&gt;
&lt;p&gt;Picky Picky Picky&lt;/p&gt;
&lt;p&gt;It seems as though we are all very fond af access.&lt;br /&gt;
I appreciate all of the help!&lt;/p&gt;
&lt;p&gt;Have a great day!&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2001 14:03:51 +0000</pubDate>
 <dc:creator>1aspfan</dc:creator>
 <guid isPermaLink="false">comment 1081668 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081660</link>
    <description> &lt;p&gt;Got in late on this one, try adding the single quotes as Mark said, and instead of using &quot;SELECT *&quot; do a &quot;SELECT Book, field, field&quot;, there&#039;s an ADO bug that can fail on SELECT * (plus it&#039;s a good habit to get into anyways). I would write it as follows:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;sql = &amp;quot;SELECT Book, field, field &amp;quot;&lt;br /&gt;sql = sql &amp;amp; &amp;quot;FROM bibletable &amp;quot;&lt;br /&gt;sql = sql &amp;amp; &amp;quot;WHERE book = &amp;#039;&amp;quot; &amp;amp; book &amp;amp; &amp;quot;&amp;#039; &amp;quot;&lt;br /&gt;sql = sql &amp;amp; &amp;quot;AND chapter = &amp;#039;&amp;quot; &amp;amp; chapter &amp;amp; &amp;quot;&amp;#039;&amp;quot; &lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Just to verify line 32 is the sql right?&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2001 12:41:46 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1081660 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081654</link>
    <description> &lt;p&gt;No need to apologize.  You just read it wrong &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I&#039;ve use Access as a backend once that I can remember.  I have a hard time trouble shooting it.  So I try to stay away from it.&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2001 07:28:11 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1081654 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081653</link>
    <description> &lt;p&gt;Mark, I apologize. Your right about the quotes and if that were the problem, you get a termination error or something similar, not the one he is getting. &lt;/p&gt;
&lt;p&gt;I just had this error come up a couple days ago, but for the life of me, can&#039;t remember what caused it. Have even been trying to recreate the error in the script i was working on at the time and still can&#039;t get it. If I didn&#039;t want it, probably would be there every time.&lt;/p&gt;
&lt;p&gt;Hopefully 1aspfan has figured it out and will share it with us. Has my curiosity up now.&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2001 07:10:46 +0000</pubDate>
 <dc:creator>cds</dc:creator>
 <guid isPermaLink="false">comment 1081653 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081641</link>
    <description> &lt;p&gt;no....&lt;/p&gt;
&lt;p&gt;chapter is an ASP variable.  It cannot go inside the quotes, or the value will not be inserted into the query. If your hard set about putting a quote after chapter, you will need to do it like this:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;sql = &amp;quot;select * from bibletable Where book = &amp;quot; &amp;amp; book &amp;amp; &amp;quot; and chapter = &amp;quot; &amp;amp; chapter &amp;amp; &amp;quot;&amp;quot;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Mon, 23 Apr 2001 05:35:38 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1081641 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081608</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;sql = &amp;quot;select * from bibletable Where book = &amp;quot; &amp;amp; book &amp;amp; &amp;quot; and chapter = &amp;quot; &amp;amp; chapter &lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;OK, let&#039;s break it down.&lt;br /&gt;
sql = &quot;select * from bibletable Where book = &quot; &amp;amp; book &amp;amp; &quot; and chapter = &quot;&lt;/p&gt;
&lt;p&gt;I think it is running fine right up to that last quote and then it ends the sql statement and gives the error because it is looking for a value and it doesn&#039;t find it. Think if you moved the last &quot; to after chapter, it would work.&lt;/p&gt;
&lt;p&gt;I have one intranet website that is driven by access that has couple hundred statements just like this one and I can create and get the same error as 1aspfan is getting by removing the closing &quot; mark.&lt;/p&gt;
 </description>
     <pubDate>Sun, 22 Apr 2001 13:27:19 +0000</pubDate>
 <dc:creator>cds</dc:creator>
 <guid isPermaLink="false">comment 1081608 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/simple-access-query#comment-1081601</link>
    <description> &lt;p&gt;nope... the number is fine.&lt;br /&gt;
You don&#039;t need a quote after chaper because its a variable, and not actually part of the SQL statement itself.&lt;/p&gt;
&lt;p&gt;I don&#039;t see anything wrong with that SQL query.  I&#039;m sure that it works on other SQL servers.  It&#039;s just that Access gets nit picky. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 22 Apr 2001 05:39:40 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1081601 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
