I have tried using an array and it keeps erroring out as Name Defined. So i simply changed all the array items to variables (z1,z2 [...6]). i have been able to loop through a while statement using a counter and variable (z & cntr) but for some reason this time it keeps populating with the counter. i have tried MANY different syntaxes to no avail. any ideas?
<%cntr=0
z0="Variable0"
z1="Variable1"
z2="Variable2"
z3="Variable3"
z4="Variable4"
z5="Variable5"%></td>
<td><select name=ap class=insl>
<option value="">Please Select</option>
<%While cntr<>6
If tRst("Code")<>z&cntr Then%>
<option value="<%=z&cntr%>"><%=z&cntr%></option>
<%Else%>
<option value="<%=z & cntr%>" selected><%=z & cntr%></option>
<%End If
cntr=cntr+1
Wend%>
</select>
<%cntr=0
z0="Variable0"
z1="Variable1"
z2="Variable2"
z3="Variable3"
z4="Variable4"
z5="Variable5"%></td>
<td><select name=ap class=insl>
<option value="">Please Select</option>
<%While cntr<>6
If tRst("Code")<>z&cntr Then%>
<option value="<%=z&cntr%>"><%=z&cntr%></option>
<%Else%>
<option value="<%=z & cntr%>" selected><%=z & cntr%></option>
<%End If
cntr=cntr+1
Wend%>
</select>