Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
HOW TO.. Filter results based on Drop-down Menu??
Old 04-06-2006, 12:53 PM HOW TO.. Filter results based on Drop-down Menu??
Novice Talker

Posts: 6
Trades: 0
I'm looking for help. Here's my current setup:

- DreamweaverMX 2004
- ASP Pages
- Connect to MSAccess Database using a DSN-Less Connection
- Currently using Recordset to display all results (limit 5 per page)
- to see my work www.brooks.ca/hall/land.asp

What I am trying to do now is sort and display the records based on one field in the table. "Land_use"

I want the user to come to this page.... choose one of 5 fields in a drop down-menu (Industrial, Commercial, Single User Residential, Multi Family Residential, All).
Based on what the user chooses, only that group type will show up on screen (limit 5 per page)

I've never done this before, but I know it should be a simple type of 'filter'. But how does one go about applying this type of filter?
For Example.... do I go into the recrodset and Filter the "land_use" "=" "Form Variable" "drop-down list" ???
but then if that's true, how does it work for the 'ALL' variable.


I'm stuck.... can someone please help me?

Thanks,
Josh
joshlindem is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-06-2006, 08:03 PM Re: HOW TO.. Filter results based on Drop-down Menu??
Novice Talker

Posts: 6
Trades: 0
Ok it's taken me all day and with a lot of help I've been able to create what I've been looking for. A page that will display depending on what is chosen from the Drop-Down Menu.

Still have a slight problem. If you go to the page you will see that when it first loads up you see 0 records. I can't make it display 'ALL' records as default.

I even created a seperate menu item, that when chosen, would display 'ALL' items. But it won't seem to do anything. Keeps coming back with 0 records.

I tried the following values:
[all]
*
&
%
$

and none of them seem to work. Is this a dreamweaver issue? Browser glitch? Or is there a command I'm not aware of to display all records.

Any help is appriciated!
Thanks!
joshlindem is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HOW TO.. Filter results based on Drop-down Menu??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10105 seconds with 12 queries