|
dzirkelb1 -> RE: Specify Width of drop down box (2/15/2005 13:04:20)
|
Yup..doesn't make sense to me either :) Here is the code: <%
fp_sQry="SELECT DISTINCT DistrictManager FROM LocationData ORDER BY DistrictManager ASC"
fp_sDefault=""
fp_sNoRecords="No records returned."
fp_sDataConn="BreakTimeEnterData"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=True
fp_sMenuChoice="DistrictManager"
fp_sMenuValue="DistrictManager"
fp_sColTypes="&DistrictManager=202&"
fp_iDisplayCols=1
fp_fCustomQuery=True
BOTID=2
fp_iRegion=BOTID
%>
<select NAME="DistrictManager" SIZE="1">
<option></option>
<!--#include file="../../_fpclass/fpdbrgn1.inc"-->
<option><%IF len(FP_Field(fp_rs,"DistrictManager")) < 20 THEN Response.write(FP_Field(fp_rs,"DistrictManager") & REPLICATE(" ",20-len(FP_Field(fp_rs,"DistrictManager")))) ELSE Response.write(FP_Field(fp_rs,"DistrictManager")) END IF%></option>
<!--#include file="../../_fpclass/fpdbrgn2.inc"-->
</select></nobr></td>
</tr>
<tr>
<td colspan="5">
<p align="center"><b>Sorting</b></td>
</tr>
<tr>
<td><b><font size="2">Column</font></b></td>
<td colspan="4">
<%
DIM myDSN, myConn, mySQL, myTempRS, F
mySQL = "SELECT * FROM qrySortColumn"
myDSN = Application("BreakTimeEnterData_ConnectionString")
Response.write("<select size='1' name='SortColumn'><option></option>" & VbCrLf)
set myConn=server.createobject("adodb.connection")
myConn.open myDSN
set myTempRS=myConn.execute(mySQL)
For Each F In myTempRS.Fields
Response.write("<option>" & F.Name & "</option>" & VbCrLf)
Next
myTempRS.close
Set myTempRS = nothing
myConn.close
Set myConn = nothing
Response.write("</select>" & VbCrLf)
%>
That isnt' all of the code (too big) but that contains the option values and the array that the error came from.
|
|
|
|