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 on multiple field items

 
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 on multiple field items
Page: [1]
 
dabney7

 

Posts: 8
From: Indianapolis, IN
Status: offline

 
Searching on multiple field items - 3/21/2001 22:39:00   
I have a query that works just fine but I now want to base my query on 2 or 3 values and not just the 1 --

Here is my current query

SELECT Central2000.Last, Central2000.First, Central2000.Part, Central2000.Descript, Central2000.ID1, Central2000.Status, Central2000.Loaned, Central2000.Email
FROM Central2000
WHERE(((Central2000.Part) Like '::Part::%'));

Any input would be appreciated.

Thanks

Spooky

 

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

 
RE: Searching on multiple field items - 3/22/2001 14:48:00   
Extend it to :

SELECT Central2000.Last, Central2000.First, Central2000.Part, Central2000.Descript, Central2000.ID1, Central2000.Status, Central2000.Loaned, Central2000.Email
FROM Central2000
WHERE(((Central2000.Part) Like '::Part::%')) OR (((Central2000.Part) Like '::Part2::%')) OR (((Central2000.Part) Like '::Part3::%'));

Make sure your form boxes are named the same as above!


(in reply to dabney7)
dabney7

 

Posts: 8
From: Indianapolis, IN
Status: offline

 
RE: Searching on multiple field items - 3/22/2001 17:09:00   
Spooky-

Maybe I didn't ask the right question-- when I used your suggestion it returns everything if I use something under part2 since I am using the % so a partial part number can be entered-- What I am looking for is to be able to look up a part number with that all fit a status of IN or Out which is a field in the database. So I am actually wanting to have the search based on two variables.

Thanks in advance for your help.


(in reply to dabney7)
Spooky

 

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

 
RE: Searching on multiple field items - 3/22/2001 17:27:00   
So its more like :

(Central2000.Part Like '::Part::%' AND Status='In') ?


(in reply to dabney7)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Searching on multiple field items
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