Using AND to query - 12/2/2004 19:30:18
I have a search page using 2 drop down boxes. I want to have it where the user must select a term from each drop down. This is the code I am using..
fp_sQry="SELECT * FROM Users WHERE (x_State LIKE '%::x_State::%' AND ProgramType LIKE '%::ProgramType::%')"
Right now the user cannot search by just using the "State" drop down, but they can search by just using the "Program Type" drop down. Is something missing from the code above?
Posts: 6385 Joined: 6/21/2002 From: West Point Utah USA Status: offline
RE: Using AND to query - 12/2/2004 21:26:52
I get "no records returned" when not choosing an option from the state dropdown. What do you expect to happen?
< Message edited by BeTheBall -- 12/2/2004 21:33:22 >
_____________________________
Duane
Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
RE: Using AND to query - 12/2/2004 21:33:26
Thanks for your help...I believe I have it working...I really don't know what I did to get it working...I just started over from scratch and it came together. This DRW is so sensitive!