|
-
Jan 18th, 2001, 12:09 AM
#2
<SELECT id=selCurrency name=selCurrency>
<OPTION value="">Select a Currency</OPTION>
<OPTION value="">-----------------</OPTION>
<%
SQL="SELECT Currency_ID, Currency FROM Currency_Code"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Provider="Microsoft.Jet.OLEDB.4.0"
objConn.ConnectionString="Data Source=" & currency.mdb
objConn.Open
Set rsCurrency = Server.CreateObject("ADODB.Recordset")
rsCurrency.Open SQL, objConn,1,3
If Not rsCurrency.EOF Then
Do until rsCurrency.EOF
Response.write("<OPTION value='" & trim(rsCurrency("Currency")) & "'>" & trim(rsCurrency("Currency")) & "</OPTION>")
rsCurrency.Movenext
Loop
End If%>
</SELECT>
Here u a, not tested yet ...
Regards,
Mac
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|