cwolgamott
Programmer
Hello.
I am having great difficulty in figuring out how to create a drop down box (or menu) by concatinating two database fields, and then trying to pass the selection to another ASP page. Here is the code I use to create the drop down:
if NOT rs.eof then
rs.movefirst
nameArea = nameArea + "<SELECT NAME=full_name>"
Do until rs.eof
nameArea = nameArea + "<OPTION VALUE=''>" + rs("first_name"
+ " " + rs("last_name"
recCounter = recCounter + 1
rs.movenext
Then, on the page I am trying to pass it to, I use this code to assign it to a variable:
inputFullName = rs("full_name"
After that, I try to use it in the WHERE clause in my select statement. The only catch is, I need to compare the first_name that was put into the drop down with a first_name field and the last_name that was put into the drop down with a last_name field. In other words, I need to pass these values separately. I have tried everything that I can think of. I would greatly appreciate any suggestions that I can get.
Thank you. 
if NOT rs.eof then
rs.movefirst
nameArea = nameArea + "<SELECT NAME=full_name>"
Do until rs.eof
nameArea = nameArea + "<OPTION VALUE=''>" + rs("first_name"
recCounter = recCounter + 1
rs.movenext
Then, on the page I am trying to pass it to, I use this code to assign it to a variable:
inputFullName = rs("full_name"
After that, I try to use it in the WHERE clause in my select statement. The only catch is, I need to compare the first_name that was put into the drop down with a first_name field and the last_name that was put into the drop down with a last_name field. In other words, I need to pass these values separately. I have tried everything that I can think of. I would greatly appreciate any suggestions that I can get.