|
| |
|
|
Guest
|
More than one parameter in a search form - 3/6/2001 13:49:00
Hi I have two or more variables (parameters) that I pass to another page, which then searches for the variable throughout the Access database. The search (query) page works fine if I pass one parameter over, but if I pass two or more I receive "No Records Found." My query is simple and frontpage 2000 generated. fp_sQry="SELECT * FROM ""FlowParts Query"" WHERE (PART = '::PART::') ORDER BY PART ASC" Thanks in advance!
|
|
|
|
regiii
Posts: 7 From: Huntington Beach, CA, 92649 Status: offline
|
RE: More than one parameter in a search form - 3/6/2001 14:26:00
I'm the same guy who posted this parameter question. only difference is I just registered. If you want to see what I'm trying to do, you can go to http://www.blue-white.net/Products/VariableArea/F-452/f452_exp.htm If you click on the number 1, the search works great. If you click on number 7, it doesn't work.?? Thanks.
|
|
|
|
Mojo
Posts: 2431 From: Chicago Status: offline
|
RE: More than one parameter in a search form - 3/8/2001 17:56:00
Rob,You need to change your hyperlink and maybe your sql. Your link, for example should be: link.asp?Part=76000-287,76000-333 Note the part numbers are seperated by a comma. Your SQL should be something like: "SELECT * FROM table WHERE Part IN (::Part::)" This will work for multiple Part numbers and a single part number. Good luck, Joe
[This message has been edited by jbennett (edited 03-08-2001).]
|
|
|
|
Elecia
Posts: 68 From: orlando Status: offline
|
RE: More than one parameter in a search form - 3/8/2001 18:08:00
[This message has been edited by Elecia (edited 03-08-2001).]
|
|
|
|
regiii
Posts: 7 From: Huntington Beach, CA, 92649 Status: offline
|
RE: More than one parameter in a search form - 3/8/2001 21:07:00
Thanks for the advice, although it still doesn't work.I've tried a dozen or more SQL statements and about the same number in hyperlink combinations. I can't seem to understand the problem. I've followed all the textbook rules. I don't think the query likes the variables I'm bringing over (more than one variable). I guess I need to dig into ASP and SQL a little more. I'm feeling a little discouraged, but I can't give up. Your feedback is totally appreciated!
|
|
|
|
Mojo
Posts: 2431 From: Chicago Status: offline
|
RE: More than one parameter in a search form - 3/9/2001 14:35:00
Rob,I have been playing with this a bit. I have it working fine, but then I wondered if it did not work for you because of your field values (example: 76000-333). I have not been able to get it to work using your values. I am using Access and the fields need to be number fields not text to work. But, to use a number field your values are causing problems. 76000-333 is looking like 76000 minus 333. If you change your field values it will work using the example I have given above. Since I don't know that much about such things I need to present my disclaimer... I reserve the right to be an idiot. I reserve the right to not know what I am talking about. I reserve the right to not be showing you the best technique available. **Whoof** Joe
|
|
|
|
Spooky
Posts: 26599 Joined: 11/11/1998 From: Middle Earth Status: offline
|
RE: More than one parameter in a search form - 3/9/2001 21:56:00
What SQL string are you using for 2 parts? In your first message, I only see one variable?
|
|
|
|
regiii
Posts: 7 From: Huntington Beach, CA, 92649 Status: offline
|
RE: More than one parameter in a search form - 3/12/2001 22:59:00
Maybe that's my problem. I only have that first part for my SQL statement. I'm dealing with a database that has over 3,000 records too (that's the size of our parts list). I've spent hours on this and no Frontpage book seems to help (nor access). I did have the "PART" field labeled as TEXT. Now it's labeled as NUMBER without the dash (from 76000-333 to 76000333) and it still doesn't work. I have exported this access database from our Informix database. Thanks for the help! Rob
|
|
|
|
regiii
Posts: 7 From: Huntington Beach, CA, 92649 Status: offline
|
RE: More than one parameter in a search form - 3/15/2001 18:38:00
IT WORKS!! Can't thank you enough!
|
|
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
|
|
|