Note that there are some explanatory texts on larger screens.

plurals
  1. POArguments are of the wrong type, are out of acceptable range, or are in conflict with one another
    primarykey
    data
    text
    <p>This is the search-process.asp file, I have a main page with a search box that links to this and uses search terms to search my database.</p> <pre class="lang-vbs prettyprint-override"><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;title&gt;UNIBOOK - Your facebook alternative - but with no adverts..!&lt;/title&gt; &lt;meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" /&gt; &lt;link rel="stylesheet" type="text/css" href="css/unibookStyle.css" /&gt; &lt;%@ Language=VBScript %&gt; &lt;% set conx=server.CreateObject("adodb.connection") conx.Provider="Microsoft.ACE.OLEDB.12.0" conx.Open Server.Mappath("db/unibookv2.mdb") set userRs=server.CreateObject("adodb.recordset") userRs.Open "SELECT * FROM ubuser WHERE usr_firstname LIKE '%" &amp; request("searchinput") &amp; "%' OR usr_lastname LIKE '%" &amp; request("searchinput") &amp; "%' ORDER BY '%" &amp; request("orderlist") &amp; "%' ",conx, adOpenkeyset, AdLockOptimistic %&gt; &lt;!-- #include FILE="include/header.asp") --&gt; &lt;div id="container"&gt;&lt;!-- start container --&gt; &lt;h2&gt;USER DATABASE&lt;/h2&gt; &lt;!-- start of dynamic html page --&gt; &lt;h2&gt;ASP Search Results ordered by : &lt;%=request("orderlist")%&gt;&lt;/h2&gt; &lt;%="&lt;b&gt;Search string:&lt;/b&gt; " &amp; searchinput &amp; "&lt;br /&gt;"%&gt; &lt;hr align="left" width="658" /&gt; &lt;%if NOT userRs.EOF Then%&gt; &lt;!-- start of html table --&gt; &lt;table border="0" width="758" cellspacing="0" cellpadding="3"&gt; &lt;!-- create the first (heading) row in standard HTML --&gt; &lt;tr class="tableheading"&gt; &lt;td&gt;&lt;b&gt;Usr_id&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;firstname&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;b&gt;lastname&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;td&gt;&lt;b&gt;Usr_id&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;firstname&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;b&gt;lastname&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;% counter=0 %&gt; &lt;%Do While Not userRs.EOF counter=counter+1 if ((counter mod 2)= 1) Then%&gt; &lt;tr&gt; &lt;td&gt; &lt;%=userRs("usr_id") &amp; "&amp;nbsp;"%&gt; &lt;/td&gt; &lt;td&gt; &lt;%=userRs("usr_firstname") %&gt; &lt;/td&gt; &lt;td&gt; &lt;%=userRs("usr_lastname") %&gt; &lt;/td&gt; &lt;%else%&gt; &lt;td&gt; &lt;!-- display the name of the mountain --&gt; &lt;%=userRs("usr_id") &amp; "&amp;nbsp;"%&gt; &lt;/td&gt; &lt;td&gt; &lt;!-- some comment here --&gt; &lt;%=userRs("usr_firstname") %&gt; &lt;/td&gt; &lt;td&gt; &lt;%=userRs("usr_lastname") %&gt; &lt;/td&gt; &lt;/tr&gt; &lt;%end if%&gt; &lt;%userRs.MoveNext LOOP%&gt; &lt;/table&gt; &lt;%else%&gt; &lt;!-- remember to provide a message if the search is not successful --&gt; &lt;h3&gt;Sorry your search was unsuccessful, please retry&lt;/h3&gt; &lt;%end if%&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;hr align="left" width="658"&gt; &lt;input type="button" value="&lt; Back to Search Page" OnClick="top.location='default.asp'"&gt; &lt;!-- #include FILE="include/sidebar.asp") --&gt; &lt;/div&gt;&lt;!-- end main page content --&gt; &lt;% ' tidy up any ASP objects used to free web server resources... userRs.close set userRs=nothing set conx=nothing %&gt; &lt;!-- #include FILE="include/footer.asp") --&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I am getting this error and am not sure if it is the SQL or ASP</p> <blockquote> <p>ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.</p> <p>/student/s0190204/part2/search-process.asp, line 17</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload