Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return user defined number of results in a search???

Status
Not open for further replies.

bjgrem

Programmer
Jul 18, 2000
10
US
I am working on a records database and i need to know how to make a search where the user selects a number of results to display from a drop-down list.
 
Please supply a little more info. Do you need help with a SQL query? Syntax for getting values from a select list? How to create a paged view with a certain number of records? <p>nick bulka<br><a href=mailto: > </a><br><a href= </a><br>Get your technical books at Bulka's Books<br>
 
The database is SQL, and i need to create a view with a certain number of records displayed per page (say, first 20 on this page, next 20 on next page... etc.) <br><br>thanks.
 
how about<br><br>intResults = request.form(&quot;NumOfResults&quot;)<br>strSQL = &quot;select top &quot; & intResults & &quot; * from table&quot;<br><br>where NumOfResults is the drop down box in the previous form<br><br>If you are trying to view the results of a search X records at a time then there is a thread in the ASP forum that will benifit you &quot; Onlys showing X records at a time&quot;<br><br>Pat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top