If I understand correctly, the following code is an example of what I use. I haven't tested it so it may need to be checked for spelling, etc.
Code:
<%
'Dimension your variables
Dim sSQL, rs, oConn
Dim sConnect
Dim sSelectFrom
Dim sSelectTo
'Define your connection string
sConnect = "<your connection string>"
'Create your connection object & open
SET oConn = Server.CreateObject("ADODB.Connection")
oConn.open sConnect
'Create your recordset object
Set rs = Server.CreateObject("ADODB.Recordset")
'define sql string
sSQL = "<your sql query>"
'open the recordset containing the dates of the transactions
rs.open sSQL, oConn
'Store your select list to a variable
sSelectFrom = "<select name=""TransFrom"" id=""TransFrom"">" & vbCrlf
sSelectTo = "<select name=""TransTo"" id=""TransTo"">" & vbCrlf
if NOT rs.EOF then 'test for empty recordset
Do UNTIL rs.eof 'loop through your recordset
sSelectFrom = sSelectFrom & "<option value=""" & rs("TransFrom") & """>" &_
FormatDateTime(rs("TransFrom"),vbShortDate) & _
"</option>" & vbCrlf
sSelectTo = sSelectTo & "<option value=""" & rs("TransTo") & """>" &_
FormatDateTime(rs("TransTo"),vbShortDate) & _
"</option>" & vbCrlf
rs.MoveNext
Loop
End If
'Finish building your select lists
sSelectFrom = sSelectFrom & "</select>" & vbCrlf
sSelectTo = sSelectTo & "</select>" & vbCrlf
'Close & Destroy your Recordset & Connection Objects
rs.close
set rs = nothing
oConn.close
set oConn = nothing
%>
then in your HTML Code simply response.write your variables.
Hope that helps! :D