This is the search form code:
<form method="POST" action="uplabels.asp">
<nobr>
<!--webbot bot="DatabaseRegionStart" s-columnnames="up" s-columntypes="202" s-dataconnection="contacts" b-tableformat="FALSE" b-menuformat="TRUE" s-menuchoice="up" s-menuvalue="up" b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource s-displaycolumns="up" s-criteria s-order s-sql="SELECT DISTINCT [up] FROM [unicontacts] ORDER BY [up] ASC" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records returned." i-maxrecords="0" i-groupsize="0" botid="9" u-dblib="../_fpclass/fpdblib.inc" u-dbrgn1="../_fpclass/fpdbrgn1.inc" u-dbrgn2="../_fpclass/fpdbrgn2.inc" preview=" <span style="color: rgb(0,0,0); background-color: rgb(255,255,0)">Database</span> " startspan b-InForm="TRUE" b-UseDotNET="FALSE" CurrentExt sa-InputTypes b-DataGridFormat="FALSE" b-DGridAlternate="TRUE" sa-CritTypes b-WasTableFormat="FALSE" --><!--#include file="../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT DISTINCT [up] FROM [unicontacts] ORDER BY [up] ASC"
fp_sDefault=""
fp_sNoRecords="No records returned."
fp_sDataConn="contacts"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=True
fp_sMenuChoice="up"
fp_sMenuValue="up"
fp_sColTypes="&up=202&"
fp_iDisplayCols=1
fp_fCustomQuery=True
BOTID=9
fp_iRegion=BOTID
%>
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="11422" --><select NAME="up" SIZE="10" multiple>
<!--webbot bot="AspInclude" clientside u-incfile="../_fpclass/fpdbrgn1.inc" startspan --><!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="AspInclude" endspan i-checksum="8126" -->
<option><%=FP_FieldHTML(fp_rs,"up")%></option>
<!--webbot bot="AspInclude" clientside u-incfile="../_fpclass/fpdbrgn2.inc" startspan --><!--#include file="../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="AspInclude" endspan i-checksum="8190" -->
</select><!--webbot bot="DatabaseRegionEnd" b-tableformat="FALSE" b-menuformat="TRUE" u-dbrgn2="../_fpclass/fpdbrgn2.inc" i-groupsize="0" clientside preview=" <span style="color: rgb(0,0,0); background-color: rgb(255,255,0)">Results</span> " startspan --><!--webbot bot="DatabaseRegionEnd" endspan --><input type="submit" value="Search" name="B2" style="font-family: Tahoma; font-weight: bold; font-size:8pt"></form>
<p></td>
This is the results page code:
<%
dim accessdb, cn, rs, sql
accessdb="/fpdb/contacts"
cn="DRIVER={Microsoft Access Driver (*.mdb)};"
cn=cn & "DBQ=" & server.mappath(accessdb)
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM unicontacts WHERE ("&Request.Form("up") &")"
' Execute the sql
rs.Open sql, cn
%>
<%
Response.ContentType = "application/vnd.ms-excel" %>
thanks, im at my wits end..lol.
Mark