Drop Down

C

Chris J

Wow, I am stuck. I am having fun trying different things. I am trying to create a Database Querry that has drop down choices. These choices are from a given field in my access database. How can I get the drop down menu to draw the choices from the field. Also note that I may have the same value more then once in that field, so I only want the Valuse to show up as a choice once. Also, what about making them Alphabetical? Thanks, CHRIS
 
C

ChrisJ

Thanks for the REPLY!!!! Ok, please look at what I did at did at www.chrisbaseballcards.com and follow the link to BLANK (Playing around with that page). I just followed the steps for a lastname querry. See the drop down that says Bagwell like 50 times? I am unsure where I should put the SELECT DISTINCT. Also, I just want it so it is a drop down and they select from names in database. Then I could set one up with make and year etc. I will attach the HTML, as this may help. thanks, CHRI

<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Blank</title><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta name="Microsoft Theme" content="twc-frame100 011, default"><meta name="Microsoft Border" content="none, default"></head><body><form method="POST" action="--WEBBOT-SELF--"><!--webbot bot="SaveResults" U-File="_private/form_results.txt
S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><p><nobr><!--webbot bot="DatabaseRegionStart" startspa
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity
s-columntypes="3,202,202,202,202,202,202,202,202" s-dataconnection="Database1
b-tableformat="FALSE" b-menuformat="TRUE" s-menuchoice="Last_Name
s-menuvalue="Last_Name" b-tableborder="TRUE" b-tableexpand="TRUE
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE
i-ListFormat="0" b-makeform="TRUE" s-recordsource="Products
s-displaycolumns="Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity
s-criteria s-order s-sql="SELECT * FROM Products" b-procedure="FALSE
clientside SuggestedExt="asp" s-DefaultField
s-NoRecordsFound="No records returned." i-MaxRecords="256" i-GroupSize="0
BOTID="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc
u-dbrgn2="_fpclass/fpdbrgn2.inc
local_preview=" &lt;span style=&quot;color: rgb(0,0,0); background-color: rgb(255,255,0)&quot;&gt;Database&lt;/span&gt;
preview=" &lt;span style=&quot;color: rgb(0,0,0); background-color: rgb(255,255,0)&quot;&gt;Database&lt;/span&gt; " --><!--#include file="_fpclass/fpdblib.inc"--><
fp_sQry="SELECT * FROM Products
fp_sDefault="
fp_sNoRecords="No records returned.
fp_sDataConn="Database1
fp_iMaxRecords=25
fp_iCommandType=
fp_iPageSize=
fp_fTableFormat=Fals
fp_fMenuFormat=Tru
fp_sMenuChoice="Last_Name
fp_sMenuValue="Last_Name
fp_iDisplayCols=
fp_fCustomQuery=Fals
BOTID=
fp_iRegion=BOTI
%><!--webbot bot="DatabaseRegionStart" I-CheckSum="53396" endspan --><select NAME="Last_Name" SIZE="1"><!--webbot bot="AspInclude" startspan CLIENTSID
U-INCFILE="_fpclass/fpdbrgn1.inc" --><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbo
bot="AspInclude" I-CheckSum="62210" endspan --><option><%=FP_FieldHTML(fp_rs,"Last_Name")%></option><!--webbot bot="AspInclude" startspan CLIENTSID
U-INCFILE="_fpclass/fpdbrgn2.inc" --><!--#include file="_fpclass/fpdbrgn2.inc"--><!--webbo
bot="AspInclude" I-CheckSum="62218" endspan --></select><!--webbot bot="DatabaseRegionEnd" startspan b-tableformat="FALSE
b-menuformat="TRUE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0
clientsid
local_preview=" &lt;span style=&quot;color: rgb(0,0,0); background-color: rgb(255,255,0)&quot;&gt;Results&lt;/span&gt;
preview=" &lt;span style=&quot;color: rgb(0,0,0); background-color: rgb(255,255,0)&quot;&gt;Results&lt;/span&gt; " --><!--webbo
bot="DatabaseRegionEnd" endspan --></nobr><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p></form><form BOTID="1" METHOD="POST" ACTION="blank.asp"><table BORDER="0"><tr><td><b>Last_Name</b></td><td><input TYPE="TEXT" NAME="Last_Name" VALUE="<%=Request("Last_Name")%>" size="20"></td></tr></table><br><input TYPE="Submit"><input TYPE="Reset"><!--webbot bot="SaveAsASP" CLIENTSID
SuggestedExt="asp" PREVIEW=" " --><p>&nbsp;</p></form><table width="100%" border="1"><thead><tr><td><b>Last_Name</b></td><td><b>First_Name</b></td><td><b>Year</b></td><td><b>Make</b></td><td><b>Card_Number</b></td><td><b>Insert_Name</b></td><td><b>Serial_Number</b></td><td><b>Quantity</b></td></tr></thead><tbody><!--webbot bot="DatabaseRegionStart" startspa
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-columntypes="3,202,202,202,202,202,202,202,202"
s-dataconnection="Database1" b-tableformat="TRUE" b-menuformat="FALSE"
s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
i-ListFormat="0" b-makeform="TRUE" s-recordsource="Products"
s-displaycolumns="Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-criteria="[Last_Name] EQ {Last_Name} +" s-order
s-sql="SELECT * FROM Products WHERE (Last_Name = '::Last_Name::')"
b-procedure="FALSE" clientside SuggestedExt="asp"
s-DefaultFields="Last_Name=Ankiel" s-NoRecordsFound="No records returned."
i-MaxRecords="256" i-GroupSize="0" BOTID="1" u-dblib="_fpclass/fpdblib.inc"
u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc"
tag="TBODY"
local_preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;Database Results regions will not preview unless this page is fetched from a Web server with a web browser. The following table row will repeat once for every record returned by the query.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include file="_fpclass/fpdblib.inc"--><%
fp_sQry="SELECT * FROM Products WHERE (Last_Name = '::Last_Name::')"
fp_sDefault="Last_Name=Ankiel"
fp_sNoRecords="<tr><td colspan=8 align=left width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=1
fp_iRegion=BOTID
%><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbot bot="DatabaseRegionStart" I-CheckSum="9499" endspan --><tr><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Last_Name" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Last_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Last_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Last_Name")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="17991" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="First_Name" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;First_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;First_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"First_Name")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="27645" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Year" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Year&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Year&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Year")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="5130" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Make" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Make&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Make&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Make")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="3834" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Card_Number" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Card_Number&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Card_Number&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Card_Number")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="27357" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Insert_Name" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Insert_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Insert_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Insert_Name")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="29391" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Serial_Number" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Serial_Number&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Serial_Number&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Serial_Number")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="35249" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Quantity" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Quantity&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Quantity&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Quantity")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="18235" endspan --></td></tr><!--webbot bot="DatabaseRegionEnd" startspan b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY"
local_preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is the end of a Database Results region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is the end of a Database Results region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include file="_fpclass/fpdbrgn2.inc"--><!--webbot bot="DatabaseRegionEnd" I-CheckSum="62730" endspan --></tbody></table></body></html>
 
K

Kathleen Anderson [MVP - FP]

Chris:
Switch to HTML/Code view and find this in the gray-colored code:
s-sql="SELECT * FROM Products" and change it to
s-sql="SELECT DISTINCT Last_Name FROM Products ORDER BY Last_Name"

Save the change while you're still in HTML/Code view.

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


ChrisJ said:
Thanks for the REPLY!!!! Ok, please look at what I did at did at
www.chrisbaseballcards.com and follow the link to BLANK (Playing
around with that page). I just followed the steps for a lastname
querry. See the drop down that says Bagwell like 50 times? I am
unsure where I should put the SELECT DISTINCT. Also, I just want it
so it is a drop down and they select from names in database. Then I
could set one up with make and year etc. I will attach the HTML, as
this may help. thanks, CHRIS

<html><head><meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"><title>Blank</title><meta name="GENERATOR"
content="Microsoft FrontPage 4.0"><meta name="ProgId"
content="FrontPage.Editor.Document"><meta name="Microsoft Theme"
content="twc-frame100 011, default"><meta name="Microsoft Border"
content="none, default"></head><body><form method="POST"
action="--WEBBOT-SELF--"><!--webbot bot="SaveResults"
U-File="_private/form_results.txt" S-Format="TEXT/CSV"
S-Label-Fields="TRUE" --><p><nobr><!--webbot
bot="DatabaseRegionStart" startspan






s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-columntypes="3,202,202,202,202,202,202,202,202"
s-dataconnection="Database1" b-tableformat="FALSE"
b-menuformat="TRUE" s-menuchoice="Last_Name" s-menuvalue="Last_Name"
b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE"
b-listlabels="TRUE" b-listseparator="TRUE" i-ListFormat="0"
b-makeform="TRUE" s-recordsource="Products"
s-displaycolumns="Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-criteria s-order s-sql="SELECT * FROM Products" b-procedure="FALSE"
clientside SuggestedExt="asp" s-DefaultFields s-NoRecordsFound="No
records returned." i-MaxRecords="256" i-GroupSize="0" BOTID="0"
u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" local_preview=" &lt;span
style=&quot;color: rgb(0,0,0); background-color:
rgb(255,255,0)&quot;&gt;Database&lt;/span&gt; " preview=" &lt;span
style=&quot;color: rgb(0,0,0); background-color:
rgb(255,255,0)&quot;&gt;Database&lt;/span&gt; " --><!--#include
file="_fpclass/fpdblib.inc"--><%
fp_sQry="SELECT * FROM Products"
fp_sDefault=""
fp_sNoRecords="No records returned."
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=True
fp_sMenuChoice="Last_Name"
fp_sMenuValue="Last_Name"
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%><!--webbot bot="DatabaseRegionStart" I-CheckSum="53396" endspan
--><select NAME="Last_Name" SIZE="1"><!--webbot bot="AspInclude"
startspan CLIENTSIDE U-INCFILE="_fpclass/fpdbrgn1.inc"
--><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbot
bot="AspInclude" I-CheckSum="62210" endspan
--><option><%=FP_FieldHTML(fp_rs,"Last_Name")%></option><!--webbot
bot="AspInclude" startspan CLIENTSIDE
U-INCFILE="_fpclass/fpdbrgn2.inc" --><!--#include
file="_fpclass/fpdbrgn2.inc"--><!--webbot bot="AspInclude"
I-CheckSum="62218" endspan --></select><!--webbot
bot="DatabaseRegionEnd" startspan b-tableformat="FALSE"
b-menuformat="TRUE" u-dbrgn2="_fpclass/fpdbrgn2.inc"
i-groupsize="0" clientside local_preview=" &lt;span
style=&quot;color: rgb(0,0,0); background-color:
rgb(255,255,0)&quot;&gt;Results&lt;/span&gt; " preview=" &lt;span
style=&quot;color: rgb(0,0,0); background-color:
rgb(255,255,0)&quot;&gt;Results&lt;/span&gt; " --><!--webbot
bot="DatabaseRegionEnd" endspan --></nobr><input type="submit"
value="Submit" name="B1"><input type="reset" value="Reset"
name="B2"></p></form><form BOTID="1" METHOD="POST"
ACTION="blank.asp"><table
BORDER="0"><tr><td><b>Last_Name</b></td><td><input TYPE="TEXT"
NAME="Last_Name" VALUE="<%=Request("Last_Name")%>"
size="20"></td></tr></table><br><input TYPE="Submit"><input
TYPE="Reset"><!--webbot bot="SaveAsASP" CLIENTSIDE
SuggestedExt="asp" PREVIEW=" " --><p>&nbsp;</p></form><table
width="100%"
border="1"> said:
<b>Year</b></td><td><b>Make</b></td><td><b>Card_Number</b></td><td><b>Inser
t_Name said:
bot="DatabaseRegionStart" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-columntypes="3,202,202,202,202,202,202,202,202"
s-dataconnection="Database1" b-tableformat="TRUE"
b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE"
b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE"
b-listseparator="TRUE" i-ListFormat="0" b-makeform="TRUE"
s-recordsource="Products"
s-displaycolumns="Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-criteria="[Last_Name] EQ {Last_Name} +" s-order s-sql="SELECT *
FROM Products WHERE (Last_Name = '::Last_Name::')"
b-procedure="FALSE" clientside SuggestedExt="asp"
s-DefaultFields="Last_Name=Ankiel" s-NoRecordsFound="No records
returned." i-MaxRecords="256" i-GroupSize="0" BOTID="1"
u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY"
local_preview="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;Database Results regions will not
preview unless this page is fetched from a Web server with a web
browser. The following table row will repeat once for every record
returned by the query.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot;
align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the start of a Database Results
region. The page must be fetched from a web server with a web browser
to display correctly; the current web is stored on your local disk or
network.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include
file="_fpclass/fpdblib.inc"--><%
fp_sQry="SELECT * FROM Products WHERE (Last_Name = '::Last_Name::')"
fp_sDefault="Last_Name=Ankiel"
fp_sNoRecords="<tr><td colspan=8 align=left width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=1
fp_iRegion=BOTID
%><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbot
bot="DatabaseRegionStart" I-CheckSum="9499" endspan
--><tr><td><!--webbot bot="DatabaseResultColumn" startspan











































s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Last_Name" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Last_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Last_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Last_Name")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="17991" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="First_Name" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;First_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;First_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"First_Name")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="27645" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Year" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Year&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Year&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Year")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="5130" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Make" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Make&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Make&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Make")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="3834" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Card_Number" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Card_Number&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Card_Number&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Card_Number")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="27357" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Insert_Name" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Insert_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Insert_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Insert_Name")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="29391" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Serial_Number" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Serial_Number&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Serial_Number&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Serial_Number")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="35249" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Quantity" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Quantity&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Quantity&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Quantity")%><!--webbot
bot="DatabaseResultColumn" I-CheckSum="18235" endspan
--></td></tr><!--webbot bot="DatabaseRegionEnd" startspan
b-tableformat="TRUE" b-menuformat="FALSE"
u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0" clientside
tag="TBODY" local_preview="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This
is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" preview="&lt;tr&gt;&lt;td
colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This
is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include
file="_fpclass/fpdbrgn2.inc"--><!--webbot bot="DatabaseRegionEnd"
I-CheckSum="62730" endspan --></tbody></table></body></html>
 
C

ChrisJ

Ma'am, did what you said and it saved well. However, I get an error now. Please see the site, looks way off. Also, If I want to make a search field for Insert Name, Card # etc. I will have to do the smae in the SQL section for each search (ASSUMING I figure this out). Once again, I dont want that blank space to fill in. It should just be the drop down Menu based off of entries in the database. Please note still shows Bagwell like 50 times. Maybe I did it incorrectly. Let me know, thanks, CHRI

www.chrisbaseballcards.com Follow the "Blank" Lin

Code

<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Blank</title><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta name="Microsoft Theme" content="twc-frame100 011, default"><meta name="Microsoft Border" content="none, default"></head><body><form method="POST" action="--WEBBOT-SELF--"><!--webbot bot="SaveResults" startspan U-File="_private/form_results.txt
S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbo
bot="SaveResults" endspan --><p><nobr><!--webbot bot="DatabaseRegionStart" startspa
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity
s-columntypes="3,202,202,202,202,202,202,202,202" s-dataconnection="Database1
b-tableformat="FALSE" b-menuformat="TRUE" s-menuchoice="Last_Name
s-menuvalue="Last_Name" b-tableborder="TRUE" b-tableexpand="TRUE
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE
i-ListFormat="0" b-makeform="TRUE" s-recordsource="Products
s-displaycolumns="Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity
s-criteria s-order s-sql="SELECT * FROM Products" b-procedure="FALSE
clientside SuggestedExt="asp" s-DefaultField
s-NoRecordsFound="No records returned." i-MaxRecords="256" i-GroupSize="0
BOTID="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc
u-dbrgn2="_fpclass/fpdbrgn2.inc
local_preview=" &lt;span style=&quot;color: rgb(0,0,0); background-color: rgb(255,255,0)&quot;&gt;Database&lt;/span&gt;
preview=" &lt;span style=&quot;color: rgb(0,0,0); background-color: rgb(255,255,0)&quot;&gt;Database&lt;/span&gt; " --><!--#include file="_fpclass/fpdblib.inc"--><
fp_sQry="SELECT * FROM Products
fp_sDefault="
fp_sNoRecords="No records returned.
fp_sDataConn="Database1
fp_iMaxRecords=25
fp_iCommandType=
fp_iPageSize=
fp_fTableFormat=Fals
fp_fMenuFormat=Tru
fp_sMenuChoice="Last_Name
fp_sMenuValue="Last_Name
fp_iDisplayCols=
fp_fCustomQuery=Fals
BOTID=
fp_iRegion=BOTI
%><!--webbot bot="DatabaseRegionStart" i-CheckSum="53396" endspan --><select NAME="Last_Name" SIZE="1"><!--webbot bot="AspInclude" startspan CLIENTSID
U-INCFILE="_fpclass/fpdbrgn1.inc" --><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbo
bot="AspInclude" i-CheckSum="62210" endspan --><option><%=FP_FieldHTML(fp_rs,"Last_Name")%></option><!--webbot bot="AspInclude" startspan CLIENTSID
U-INCFILE="_fpclass/fpdbrgn2.inc" --><!--#include file="_fpclass/fpdbrgn2.inc"--><!--webbo
bot="AspInclude" i-CheckSum="62218" endspan --></select><!--webbot bot="DatabaseRegionEnd" startspan b-tableformat="FALSE
b-menuformat="TRUE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0
clientsid
local_preview=" &lt;span style=&quot;color: rgb(0,0,0); background-color: rgb(255,255,0)&quot;&gt;Results&lt;/span&gt;
preview=" &lt;span style=&quot;color: rgb(0,0,0); background-color: rgb(255,255,0)&quot;&gt;Results&lt;/span&gt; " --><!--webbo
bot="DatabaseRegionEnd" endspan --></nobr><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p></form><form BOTID="1" METHOD="POST" ACTION="blank.asp"><table BORDER="0"><tr><td><b>Last_Name</b></td><td><input TYPE="TEXT" NAME="Last_Name" VALUE="<%=Request("Last_Name")%>" size="20"></td></tr></table><br><input TYPE="Submit"><input TYPE="Reset"><!--webbot bot="SaveAsASP" CLIENTSID
SuggestedExt="asp" PREVIEW=" " --><p>&nbsp;</p></form><table width="100%" border="1"><thead><tr><td><b>Last_Name</b></td><td><b>First_Name</b></td><td><b>Year</b></td><td><b>Make</b></td><td><b>Card_Number</b></td><td><b>Insert_Name</b></td><td><b>Serial_Number</b></td><td><b>Quantity</b></td></tr></thead><tbody><!--webbot bot="DatabaseRegionStart" startspa
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-columntypes="3,202,202,202,202,202,202,202,202"
s-dataconnection="Database1" b-tableformat="TRUE" b-menuformat="FALSE"
s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
i-ListFormat="0" b-makeform="TRUE" s-recordsource="Products"
s-displaycolumns="Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-criteria="[Last_Name] EQ {Last_Name} +" s-order
s-sql="SELECT DISTINCT Last_Name FROM Products ORDER BY Last_Name"
b-procedure="FALSE" clientside SuggestedExt="asp"
s-DefaultFields="Last_Name=Ankiel" s-NoRecordsFound="No records returned."
i-MaxRecords="256" i-GroupSize="0" BOTID="1" u-dblib="_fpclass/fpdblib.inc"
u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc"
tag="TBODY"
local_preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;Database Results regions will not preview unless this page is fetched from a Web server with a web browser. The following table row will repeat once for every record returned by the query.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include file="_fpclass/fpdblib.inc"--><%
fp_sQry="SELECT DISTINCT Last_Name FROM Products ORDER BY Last_Name"
fp_sDefault="Last_Name=Ankiel"
fp_sNoRecords="<tr><td colspan=8 align=left width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=1
fp_iRegion=BOTID
%><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbot bot="DatabaseRegionStart" i-CheckSum="10776" endspan --><tr><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Last_Name" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Last_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Last_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Last_Name")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="17991" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="First_Name" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;First_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;First_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"First_Name")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="27645" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Year" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Year&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Year&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Year")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="5130" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Make" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Make&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Make&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Make")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="3834" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Card_Number" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Card_Number&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Card_Number&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Card_Number")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="27357" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Insert_Name" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Insert_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Insert_Name&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Insert_Name")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="29391" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Serial_Number" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Serial_Number&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Serial_Number&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Serial_Number")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="35249" endspan --></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Serial_Number,Quantity"
s-column="Quantity" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Quantity&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Quantity&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_rs,"Quantity")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="18235" endspan --></td></tr><!--webbot bot="DatabaseRegionEnd" startspan b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY"
local_preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is the end of a Database Results region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is the end of a Database Results region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include file="_fpclass/fpdbrgn2.inc"--><!--webbot bot="DatabaseRegionEnd" i-CheckSum="62730" endspan --></tbody></table></body></html>
 
K

Kathleen Anderson [MVP - FP]

Chris:
The only Database Region that should be on that page is the one containing
the Dropdown. Once someone makes a selection, it should pass off to (post
to) another page containing the results:
http://www.spiderwebwoman.com/resources/dbrwtipsandtricks.asp#return

Also, because you have more than 1 Database region on the page, I think you
changed the wrong one.


--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


ChrisJ said:
Ma'am, did what you said and it saved well. However, I get an error
now. Please see the site, looks way off. Also, If I want to make a
search field for Insert Name, Card # etc. I will have to do the smae
in the SQL section for each search (ASSUMING I figure this out).
Once again, I dont want that blank space to fill in. It should just
be the drop down Menu based off of entries in the database. Please
note still shows Bagwell like 50 times. Maybe I did it incorrectly.
Let me know, thanks, CHRIS

www.chrisbaseballcards.com Follow the "Blank" Link


Code:

<html><head><meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"><title>Blank</title><meta name="GENERATOR"
content="Microsoft FrontPage 4.0"><meta name="ProgId"
content="FrontPage.Editor.Document"><meta name="Microsoft Theme"
content="twc-frame100 011, default"><meta name="Microsoft Border"
content="none, default"></head><body><form method="POST"
action="--WEBBOT-SELF--"><!--webbot bot="SaveResults" startspan
U-File="_private/form_results.txt" S-Format="TEXT/CSV"
S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP"
VALUE="0"><!--webbot bot="SaveResults" endspan
--><p><nobr><!--webbot bot="DatabaseRegionStart" startspan






s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-columntypes="3,202,202,202,202,202,202,202,202"
s-dataconnection="Database1" b-tableformat="FALSE"
b-menuformat="TRUE" s-menuchoice="Last_Name" s-menuvalue="Last_Name"
b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE"
b-listlabels="TRUE" b-listseparator="TRUE" i-ListFormat="0"
b-makeform="TRUE" s-recordsource="Products"
s-displaycolumns="Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-criteria s-order s-sql="SELECT * FROM Products" b-procedure="FALSE"
clientside SuggestedExt="asp" s-DefaultFields s-NoRecordsFound="No
records returned." i-MaxRecords="256" i-GroupSize="0" BOTID="0"
u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" local_preview=" &lt;span
style=&quot;color: rgb(0,0,0); background-color:
rgb(255,255,0)&quot;&gt;Database&lt;/span&gt; " preview=" &lt;span
style=&quot;color: rgb(0,0,0); background-color:
rgb(255,255,0)&quot;&gt;Database&lt;/span&gt; " --><!--#include
file="_fpclass/fpdblib.inc"--><%
fp_sQry="SELECT * FROM Products"
fp_sDefault=""
fp_sNoRecords="No records returned."
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=True
fp_sMenuChoice="Last_Name"
fp_sMenuValue="Last_Name"
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%><!--webbot bot="DatabaseRegionStart" i-CheckSum="53396" endspan
--><select NAME="Last_Name" SIZE="1"><!--webbot bot="AspInclude"
startspan CLIENTSIDE U-INCFILE="_fpclass/fpdbrgn1.inc"
--><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbot
bot="AspInclude" i-CheckSum="62210" endspan
--><option><%=FP_FieldHTML(fp_rs,"Last_Name")%></option><!--webbot
bot="AspInclude" startspan CLIENTSIDE
U-INCFILE="_fpclass/fpdbrgn2.inc" --><!--#include
file="_fpclass/fpdbrgn2.inc"--><!--webbot bot="AspInclude"
i-CheckSum="62218" endspan --></select><!--webbot
bot="DatabaseRegionEnd" startspan b-tableformat="FALSE"
b-menuformat="TRUE" u-dbrgn2="_fpclass/fpdbrgn2.inc"
i-groupsize="0" clientside local_preview=" &lt;span
style=&quot;color: rgb(0,0,0); background-color:
rgb(255,255,0)&quot;&gt;Results&lt;/span&gt; " preview=" &lt;span
style=&quot;color: rgb(0,0,0); background-color:
rgb(255,255,0)&quot;&gt;Results&lt;/span&gt; " --><!--webbot
bot="DatabaseRegionEnd" endspan --></nobr><input type="submit"
value="Submit" name="B1"><input type="reset" value="Reset"
name="B2"></p></form><form BOTID="1" METHOD="POST"
ACTION="blank.asp"><table
BORDER="0"><tr><td><b>Last_Name</b></td><td><input TYPE="TEXT"
NAME="Last_Name" VALUE="<%=Request("Last_Name")%>"
size="20"></td></tr></table><br><input TYPE="Submit"><input
TYPE="Reset"><!--webbot bot="SaveAsASP" CLIENTSIDE
SuggestedExt="asp" PREVIEW=" " --><p>&nbsp;</p></form><table
width="100%"
border="1"> said:
<b>Year</b></td><td><b>Make</b></td><td><b>Card_Number</b></td><td><b>Inser
t_Name said:
bot="DatabaseRegionStart" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-columntypes="3,202,202,202,202,202,202,202,202"
s-dataconnection="Database1" b-tableformat="TRUE"
b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE"
b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE"
b-listseparator="TRUE" i-ListFormat="0" b-makeform="TRUE"
s-recordsource="Products"
s-displaycolumns="Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-criteria="[Last_Name] EQ {Last_Name} +" s-order s-sql="SELECT
DISTINCT Last_Name FROM Products ORDER BY Last_Name"
b-procedure="FALSE" clientside SuggestedExt="asp"
s-DefaultFields="Last_Name=Ankiel" s-NoRecordsFound="No records
returned." i-MaxRecords="256" i-GroupSize="0" BOTID="1"
u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY"
local_preview="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;Database Results regions will not
preview unless this page is fetched from a Web server with a web
browser. The following table row will repeat once for every record
returned by the query.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot;
align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the start of a Database Results
region. The page must be fetched from a web server with a web browser
to display correctly; the current web is stored on your local disk or
network.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include
file="_fpclass/fpdblib.inc"--><%
fp_sQry="SELECT DISTINCT Last_Name FROM Products ORDER BY Last_Name"
fp_sDefault="Last_Name=Ankiel"
fp_sNoRecords="<tr><td colspan=8 align=left width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=1
fp_iRegion=BOTID
%><!--#include file="_fpclass/fpdbrgn1.inc"--><!--webbot
bot="DatabaseRegionStart" i-CheckSum="10776" endspan
--><tr><td><!--webbot bot="DatabaseResultColumn" startspan











































s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Last_Name" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Last_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Last_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Last_Name")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="17991" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="First_Name" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;First_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;First_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"First_Name")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="27645" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Year" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Year&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Year&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Year")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="5130" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Make" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Make&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Make&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Make")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="3834" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Card_Number" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Card_Number&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Card_Number&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Card_Number")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="27357" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Insert_Name" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Insert_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Insert_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Insert_Name")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="29391" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Serial_Number" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Serial_Number&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Serial_Number&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Serial_Number")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="35249" endspan
--></td><td><!--webbot bot="DatabaseResultColumn" startspan
s-columnnames="ID,Last_Name,First_Name,Year,Make,Card_Number,Insert_Name,Ser
ial_Number,Quantity"
s-column="Quantity" b-tableformat="TRUE" b-hasHTML="FALSE" clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Quantity&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Quantity&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Quantity")%><!--webbot
bot="DatabaseResultColumn" i-CheckSum="18235" endspan
--></td></tr><!--webbot bot="DatabaseRegionEnd" startspan
b-tableformat="TRUE" b-menuformat="FALSE"
u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0" clientside
tag="TBODY" local_preview="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This
is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" preview="&lt;tr&gt;&lt;td
colspan=64 bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This
is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include
file="_fpclass/fpdbrgn2.inc"--><!--webbot bot="DatabaseRegionEnd"
i-CheckSum="62730" endspan --></tbody></table></body></html>
 
C

ChrisJ

Thanks to you, I AM LEARNING!!! Thank you, got it working with last names. Now if I want to add another drop down below my first one (say by Make), can I make it use the same reults area? Just add a search field (drop down menu). Also, if someone wants to just look at everything in the database, is there a way to do that? Thanks again! you have been a great help!!!! Chris
 
C

ChrisJ

Ah, that is great, but I just want seperate ones, so a person could search by year OR Player Or Make or Inset name (all of which get their drop down choices from the database) and use the same reults area. so they will only be able to choose one field, but that is still pretty nice! Please let me know. your link is sweet and informative, but not what I am trying to do. i just want several fields they can shoose from (one of them) and go! An also I would like them to be able to look at all cards to it would be a Check box saying see all cards (broken into say 1000 per page). Is this possible? So 2 questions really. LOL, Thanks, CHRIS
 
K

Kathleen Anderson [MVP - FP]

Chris:
I went back to your site and found that you've already done it. Good job!

To get a list of all the cards, you would insert another Database Results
Region with no selection criteria, and in the last step of the wizard,
define the number of records you want shown per page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top