query by (request.form)
am 04.05.2006 14:28:49 von amatuerI usesd this to display info on a page:
<% While not rstMain.eof %>
<% rstMain.movenext
Wend%>
on the next page i want the data from the checkbox.it comes as a
string,numerics concatanated with a ","
i want to query according to this checkbox n tried this code:
For i=1 to (len(request.form("Inv")))
If left(request.form("Inv"),i) = "," Then
count = count + 1
End If
Next
'For i=1 to count do
'var1=instr(request.form("Inv"),",")
'sql="SELECT * From V_Transaksie Where ID=" &
left(request.form("Inv"),var1-1)
'set rstMain = CreateObject("ADODB.Recordset")
'rstMain.Open sql, "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID=sa;password=admin@sql;Initial Catalog=GIS;Data
Source=172.16.4.180",1,4
All above ASP.Please help