M
Michael Haas
I'm trying to use a variable of retrieved via request from a form to
select records.I'm pretty sure I am having a basic syntax error or
something else basic.
I retrieve the variable from a prevous form:
section_id = request("section_id")
I then retrieve some records and run the compare, if i use the actual
value it works:
if rsArticles("tbl_articles.section_id") = "1" then
however if I substitute the variable section_id which equals 1 , it
fails the compare and moves on to the else:
if rsArticles("tbl_articles.section_id") = section_id then
if I call the section_id value elsewhere it shows that it is set to 1,
so I know it's being passed, <%=section_id%> returns 1
What am I missing?
select records.I'm pretty sure I am having a basic syntax error or
something else basic.
I retrieve the variable from a prevous form:
section_id = request("section_id")
I then retrieve some records and run the compare, if i use the actual
value it works:
if rsArticles("tbl_articles.section_id") = "1" then
however if I substitute the variable section_id which equals 1 , it
fails the compare and moves on to the else:
if rsArticles("tbl_articles.section_id") = section_id then
if I call the section_id value elsewhere it shows that it is set to 1,
so I know it's being passed, <%=section_id%> returns 1
What am I missing?