anonymous
08-27-2002, 05:27 AM
[Originally posted by jack]
Ok I have now tried to use an sql statement, like this
<!--#include file="Email_datalink.asp"-->
Dim objrs
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open objConn˙ ˙ ˙ ˙ ˙ 'from include file at top of page
strSQL = "SELECT * FROM qrycc_main " _
˙ ˙ ˙ & "WHERE Resort LIKE '" & Request.Form("dropresort") & "'"
Set oRs = oConn.Execute(strSQL)
How do I pass another field into the where clause form the request page??
any help very much appreciated
Cheers Jack
Ok I have now tried to use an sql statement, like this
<!--#include file="Email_datalink.asp"-->
Dim objrs
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open objConn˙ ˙ ˙ ˙ ˙ 'from include file at top of page
strSQL = "SELECT * FROM qrycc_main " _
˙ ˙ ˙ & "WHERE Resort LIKE '" & Request.Form("dropresort") & "'"
Set oRs = oConn.Execute(strSQL)
How do I pass another field into the where clause form the request page??
any help very much appreciated
Cheers Jack