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

 

Searching multiple fields with 1 input box? possible?

 
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 >> Searching multiple fields with 1 input box? possible?
Page: [1]
 
AllenD

 

Posts: 258
From: Dayton, OH, USA
Status: offline

 
Searching multiple fields with 1 input box? possible? - 3/7/2001 19:51:00   
Hello, I would like to search multiple fields in a database, but would only like to have 1 text box instead of 2. For example, I have a database of first and last names. But in the text box, I want the user to be able to type the first OR last name and have the results displayed. I have it working fine with just the last name. Is there a way to change the code to do this? Thanks!
Spooky

 

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

 
RE: Searching multiple fields with 1 input box? possible? - 3/7/2001 20:49:00   
Hi, check out step 3 of the DRW "More options"

www.outfront.net/spooky/step3.htm

Here you set up your criteria.

You would specify your text box name as the criteria 'value' for both field names

------------------
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 AllenD)
AllenD

 

Posts: 258
From: Dayton, OH, USA
Status: offline

 
RE: Searching multiple fields with 1 input box? possible? - 3/7/2001 21:41:00   
You lost me spooky...Would I be creating more than 1 criteria entry? If I do that would it still make 2 entry boxes when I only want one? Thanks!

(in reply to AllenD)
AllenD

 

Posts: 258
From: Dayton, OH, USA
Status: offline

 
RE: Searching multiple fields with 1 input box? possible? - 3/7/2001 22:08:00   
I got it Spooky! I looked at the code, I forgot that I had to go back and add the '%::Name::%', it was just putting in 'Name' and thats why it didnt work the first time, I was searching a text field...Thanks again for all your help in the past and in the future!

(in reply to AllenD)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Searching multiple fields with 1 input box? possible?
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