populate table with results of query
- From: Mike P <mike.parr@xxxxxxxxx>
- Date: Thu, 20 Sep 2007 08:58:14 -0700
I am trying to populate a table with the results of a query, a parameter
of which is passed from a textbox.
But I keep getting the error 'type mismatch'. Can anybody help?
<BODY>
<!-- #include virtual = "include_top.asp" -->
<FORM ACTION = "KempsClassSearch.asp" METHOD = "Post">
<table>
<tr>
<TD>Description:</TD>
<TD><INPUT TYPE = "TEXTBOX" NAME = "Description" maxLength = "30"
SIZE = "40" AUTOCOMPLETE = "OFF"></TD>
</tr>
<tr/>
<tr/>
<tr>
<TD></TD>
<TD ALIGN ="CENTER"><INPUT TYPE = "SUBMIT" VALUE = "Submit"></TD>
</tr>
<tr/>
<tr/>
<tr/>
<tr/>
<tr>
<td>
<%
If (Request("Description") <> "") then
Dim objRS
Set objRs = Server.CreateObject("ADODB.Recordset")
Dim strDescription
strDescription = Request("Description")
objRs.Open "SELECT strKempsClassDescription FROM lkpKempsClass
WHERE strKempsClassDescription LIKE '%" _
& strDescription & "%' ORDER BY strKempsClassDescription",
Application("cnnstrCompanyData"), adOpenStatic, adLockReadOnly,
adCmdText
Response.Write RecToTable(objRS)
objRS.Close
set objRS = Nothing
End If
%>
</td>
</tr>
</table>
</FORM>
<!-- #include virtual = "include_bottom.htm" -->
</BODY>
*** Sent via Developersdex http://www.developersdex.com ***
.
- Follow-Ups:
- Re: populate table with results of query
- From: McKirahan
- Re: populate table with results of query
- Prev by Date: Re: update table with the word Null
- Next by Date: Re: update table with the word Null
- Previous by thread: Re: how to open a web page and logon?
- Next by thread: Re: populate table with results of query
- Index(es):
Relevant Pages
|