Forums

This topic is locked

Dynamic List/Menu

Posted 30 Sep 2002 20:32:31
1
has voted
30 Sep 2002 20:32:31 Mike Chapman posted:
Hi all.
I am making a Insertpage with a dynamic listmenu. The values in the listmenu comes from a table from the database, however I get all the values returned to the listmenu. What I want is for it to ignore a value if it already exists and jump to the next one.

MeZ...

Replies

Replied 01 Oct 2002 09:18:30
01 Oct 2002 09:18:30 Vince Baker replied:
in the sql code in your recordset you need to add the word DISTINCT that will remove duplicates.

Example

Select DISINCT yourlabel
FROM yourTable

Regards
Vince

Response.write("The best line of code you can ever use"

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 08 Oct 2002 21:46:43
08 Oct 2002 21:46:43 Mike Chapman replied:
Thanks Vince!

MeZ

Reply to this topic