I can't find the error on my code. I'm trying to fill a drop-down box from an Access DB but it's not working. Thanks in advance.
Here's my code:
<%
Dim RSvedit
set RSvedit=server.createobject("adodb.recordset"
RSvedit.open "vendors" "dsn=db1"
RSvedit.MoveFirst
%>
<%
<form method="post" action="--WEBBOT-SELF--">
<p align="center"><select size="1" name="vendorsdrop">
<option selected value="Select Vendor">Select Vendor</option>
<%
Do while NOT RSvedit.EOF
Response.Write "<Option Value='" & RSvedit1("accnumber" & "'>"
Response.Write RSvedit("accnumber" & "</Option>"
RSvedit.MoveNext
Loop
RSvedit.Close
set RSvedit=nothing
%>
</select></p>
<p align="center"><input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2"></p>
</form>
%>
I don't see it, I'm sure you will. Thanks again.
Only if I really helped you
|
|
|
|
V (-:
Here's my code:
<%
Dim RSvedit
set RSvedit=server.createobject("adodb.recordset"
RSvedit.open "vendors" "dsn=db1"
RSvedit.MoveFirst
%>
<%
<form method="post" action="--WEBBOT-SELF--">
<p align="center"><select size="1" name="vendorsdrop">
<option selected value="Select Vendor">Select Vendor</option>
<%
Do while NOT RSvedit.EOF
Response.Write "<Option Value='" & RSvedit1("accnumber" & "'>"
Response.Write RSvedit("accnumber" & "</Option>"
RSvedit.MoveNext
Loop
RSvedit.Close
set RSvedit=nothing
%>
</select></p>
<p align="center"><input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2"></p>
</form>
%>
I don't see it, I'm sure you will. Thanks again.
Only if I really helped you
|
|
|
|
V (-: