navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Yes/No dropdown population

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Yes/No dropdown population
Page: [1]
 
WIryeman

 

Posts: 14
Joined: 2/27/2003
Status: offline

 
Yes/No dropdown population - 6/28/2004 16:20:41   
I am using the DBRW in FP2002 to create a dropdown menu to perform a search. I end up with multiple entrys of the same value.

Here is the link for the menu http://www.reitersgrille.com/lakes/fish.asp it is a work in progress. The underlying query in access was built in access and uses yes no option. I am using a query because the need of additional info not available in the underlying table.

The query and underlying table looks something like this:

LakeID| |Northern_Pike||W alleye_Pike| |etc|
1234Water| |Yes/No| |Yes/No| |Y/N|


As you can see I will pass parameters to the result page: Which will show which lakes have different species of fish. I.E. if I choose Northern Pike all lakes with northerns will result. But I have not gotten that far yet. It will result in similar results if you use a similar serach on http://www.reitersgrille.com/Lakes/lakes.asp.

How do I stop the repeating population of the dropdown?
Thanks
Ryeman
BeTheBall

 

Posts: 6359
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Yes/No dropdown population - 6/28/2004 17:20:57   
To avoid duplicates, you need to use SELECT DISTINCT. For example if you are trying to just display each species,

SELECT DISTINCT Species FROM YourTable

If that doesn't work for you, post the code you are currently trying.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to WIryeman)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Yes/No dropdown population
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts