navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
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

 

Can't figure it out....

 
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 >> Can't figure it out....
Page: [1]
 
Stuart at Cherry

 

Posts: 121
From: Leeds, West Yorkshire, UK
Status: offline

 
Can't figure it out.... - 4/4/2001 23:15:00   
I've got a database and in one particular field I have 14 distinct locations of the UK. The only way to update the DB is using a form which has a dropdown list for this field, which contains (of course) those 14 distinct locations. So I can be sure that every record in the DB has, in that field, one of those 14 locations.

Now, I have done a search form which uses ASP to search on that field, using a drop down list with the 14 locations. The output is passed to the queryasp page. The code I use on that page is....

SELECT * FROM vacancy_list
WHERE Job_locator = '::Job_locator::'

This works fine. Lovely stuff. However, I also want to put an 'All regions' option on the drop down list. So that anyone could search on one of those particular 14 regions, but could also choose to select to search the whole database if they so wished. I thought I would be able to change the 'value' in the drop down menu properties from 'All regions' to a * symbol.

However, this causes a 'no records returned' message.

Anyone got any advice?

Thanks in anticipation..

------------------
***born to be wild***

Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Can't figure it out.... - 4/4/2001 13:25:00   
Change the query to a "contains" (like) query, and use the wildcard value "%" as the listbox "all" value to return all records

------------------
Spooky
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to Stuart at Cherry)
Stuart at Cherry

 

Posts: 121
From: Leeds, West Yorkshire, UK
Status: offline

 
RE: Can't figure it out.... - 4/5/2001 20:36:00   
Thanks Spooky. That's spot on!

(in reply to Stuart at Cherry)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Can't figure it out....
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