Guest_imported
New member
- Jan 1, 1970
- 0
Really...... Im not an idiot but this list box is giving me nothing but problems. I finnally have it displaying infor from the database. I wish to add another listbox in the same form that calls from another field. When published the first listbox works great, but the second listbox is just displaying all of the data from the database, but not placing it into the dropdown. Any ideas?
dim conn
dim oconn
set conn= server.CreateObject ("adodb.recordset"
set oconn= server.CreateObject ("adodb.recordset"
conn.Open "classifacation", "DSN=S215"
oconn.Open "abc", "DSN=S215"
conn.MoveFirst
oconn.MoveFirst
%>
<form action=DAP1.asp id=form1 name=form1>
<p><select Name="Class" Size="1">
<%
Do While Not conn.EOF
Response.Write "<OPTION Value='" & conn("business Type" & "'>"
Response.Write conn("business type" & "</Option>"
conn.MoveNext
Loop
%>
<p><select Name="Location" Size="1">
<%
Do While Not oconn.EOF
Response.Write "<OPTION Value='" & oconn("bcity" & "'>"
Response.Write oconn("bcity" & "</Option>"
oconn.MoveNext
Loop
%>
<FONT size=2> <INPUT id=submit1 name=submit1 type=submit value=Submit></FORM></FONT>
<P></P></TD></TR></TABLE>
Im Grateful for any assistance.
Mr. Prewit, that was the problem. Thanks for lending the assistance
Micah A. Norman
dim conn
dim oconn
set conn= server.CreateObject ("adodb.recordset"
set oconn= server.CreateObject ("adodb.recordset"
conn.Open "classifacation", "DSN=S215"
oconn.Open "abc", "DSN=S215"
conn.MoveFirst
oconn.MoveFirst
%>
<form action=DAP1.asp id=form1 name=form1>
<p><select Name="Class" Size="1">
<%
Do While Not conn.EOF
Response.Write "<OPTION Value='" & conn("business Type" & "'>"
Response.Write conn("business type" & "</Option>"
conn.MoveNext
Loop
%>
<p><select Name="Location" Size="1">
<%
Do While Not oconn.EOF
Response.Write "<OPTION Value='" & oconn("bcity" & "'>"
Response.Write oconn("bcity" & "</Option>"
oconn.MoveNext
Loop
%>
<FONT size=2> <INPUT id=submit1 name=submit1 type=submit value=Submit></FORM></FONT>
<P></P></TD></TR></TABLE>
Im Grateful for any assistance.
Mr. Prewit, that was the problem. Thanks for lending the assistance
Micah A. Norman