Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if statement redirect to specific record 1

Status
Not open for further replies.

evr72

MIS
Dec 8, 2009
265
US
Hello,

I am not sure how to go about this one.

I have a survey in our intranet, that all works well, when the user gets to the last page, the user gets redirected to a sign.asp page
The issue that I am having is that the user can see all of the other users in the sign.asp page

here is what I have so far

Code:
if rs("lastqst")="Yes" then response.redirect "signed.asp"

here is what I would like to happen, I know that this is not corect I just put it in there so you can see my idea
Code:
if rs("lastqst")="Yes" then response.redirect "signed.asp" where rs("cycle")=rs1("cycle") and rs("function")=rs1("funciton")

the rs comes from my answers table
the rs1comes from my signed table

I appreciate any help

 
I suspect your trying to pass two values, from the Signed table, to the 'signed.asp' page. This should do it:

if rs("lastqst")="Yes" then
response.redirect("signed.asp?cycle=" & rs1("cycle") & "&function=" & rs1("function"))
end if

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top