Hey,
If i have this code:
Which gives this result:Code:<select id="AvailableTourCodes" multiple="multiple"> <% Do While Not Rec.EOF %> <option value="<%=Rec(0)%>"><%=Rec(1)%></option> <% Rec.MoveNext Loop %> </select>
I want to remove the duplicates, now i can't do this via the SQL because of the way it has been setup, it will cause problems elsewhere.<option value="88664">RHMA811</option>
<option value="88673">MAGA711</option>
<option value="88674">MAGA711</option>
<option value="88674">MAGA711</option>
<option value="88681">MRCAM11</option>
<option value="88684">NYA5D11</option>
<option value="88690">GFA1211</option>
So what i want to do it try and looop through and remove the duplicates so the result is this:
Is this possible?<option value="88664">RHMA811</option>
<option value="88673">MAGA711</option>
<option value="88681">MRCAM11</option>
<option value="88684">NYA5D11</option>
<option value="88690">GFA1211</option>
Kind regards,





Reply With Quote

Bookmarks