|
| |
|
|
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! 
|
|
|
|
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.
|
|
|
|
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') ?
|
|
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
|
|
|