Hi,
I have the following code for a Combo box:-
<select name="accesslevel" class="form">
<option value="0" <% if Clng(rs("accesslevel"))=0 then Response.Write " selected" end if%>>View only</option>
<option value="1" <% if Clng(rs("accesslevel"))=1 then Response.Write " selected" end if%>>Requestor</option>
<option value="2" <% if Clng(rs("accesslevel"))=2 then Response.Write " selected" end if%>>Yield</option>
<option value="3" <% if Clng(rs("accesslevel"))=3 then Response.Write " selected" end if%>>Authorise</option>
<option value="5" <% if Clng(rs("accesslevel"))=5 then Response.Write " selected" end if%>>Administrator</option>
</select>
However I can use this only for numbers (Clng) but how do I get it to work for letters.e.g. If the options were ABC etc?
TIA
Steve