jazzy639
05-10-2005, 03:25 PM
Hello,
I have a dynamic menu which should display usernames. Then when I click go, it displays records from the suer.
The problem is that users have multiple records so the same user is shown multiple times.
How can I get it to not display duplicates?
Here is the code:
<option value="<%=(bookings.Fields.Item("teachersname").Value)%>"><%=(bookings.Fields.Item("teachersname").Value)%></option>
<%
bookings.MoveNext()
Wend
If (bookings.CursorType > 0) Then
bookings.MoveFirst
Else
bookings.Requery
End If
%>
</select>
<input type="submit" name="Submit" value="Go">
</form>
Thanks
I have a dynamic menu which should display usernames. Then when I click go, it displays records from the suer.
The problem is that users have multiple records so the same user is shown multiple times.
How can I get it to not display duplicates?
Here is the code:
<option value="<%=(bookings.Fields.Item("teachersname").Value)%>"><%=(bookings.Fields.Item("teachersname").Value)%></option>
<%
bookings.MoveNext()
Wend
If (bookings.CursorType > 0) Then
bookings.MoveFirst
Else
bookings.Requery
End If
%>
</select>
<input type="submit" name="Submit" value="Go">
</form>
Thanks