HI,
I'm trying to solve something that seems like it should be ridiculously easy. I want to display a drop down on an update form that shows the value currently in that field for that row as "selected" along the other options available. I looked at past threads and tried this code, but it didn't work for some reason. It looks good to me, but can't figure out why it's not working.
<select name = "select">
<option value = "value1" <% if rs.("fieldname"= "value1" then resonse.write(" selected" %>>value1
<option value = "value2" <% if rs.("fieldname"= "value2" then resonse.write(" selected" %>>value2
<option value = "value3" <% if rs.("fieldname"= "value3" then resonse.write(" selected" %>>value3
</select>
Any suggestions would be appreciated.
Thanks,
Jason
Austin Texas
I'm trying to solve something that seems like it should be ridiculously easy. I want to display a drop down on an update form that shows the value currently in that field for that row as "selected" along the other options available. I looked at past threads and tried this code, but it didn't work for some reason. It looks good to me, but can't figure out why it's not working.
<select name = "select">
<option value = "value1" <% if rs.("fieldname"= "value1" then resonse.write(" selected" %>>value1
<option value = "value2" <% if rs.("fieldname"= "value2" then resonse.write(" selected" %>>value2
<option value = "value3" <% if rs.("fieldname"= "value3" then resonse.write(" selected" %>>value3
</select>
Any suggestions would be appreciated.
Thanks,
Jason
Austin Texas