| | |
force Search Page to return no records on open
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2004
Posts: 2
Reputation:
Solved Threads: 0
I have a page that is primarily designed to search the database for all entries within the entered state.
I'd like to open the page with no results being returned in the results form. Currently when the page is loaded it returns all the records in the db.
Here is the select statement:
"SELECT * FROM National WHERE (State like '%:
earchValue::%') ORDER BY State ASC"
I'd like to open the page with no results being returned in the results form. Currently when the page is loaded it returns all the records in the db.
Here is the select statement:
"SELECT * FROM National WHERE (State like '%:
earchValue::%') ORDER BY State ASC" •
•
Join Date: May 2004
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by inscissor
So you want a query that returns zero results? If so, does that SQL statement have to remain unmodified? Please be a tad clearer. Thanks!
Since no state has the abbreviation "ST" this returns empty results on load.
here is the page in question if you want to look: www.ymcayg.org
![]() |
Similar Threads
- Search a word, return the line (C++)
- Internet Explorer could not open the search page. maybe some type of dns error? (Web Browsers)
- Display Search Results as Hyperlinks to Records (ASP)
- IE "can not find the search page" (Web Browsers)
- Inetrnet Explorer could not open the search page after SP2 install (Web Browsers)
Other Threads in the ASP Forum
- Previous Thread: ASP Replace Function....
- Next Thread: Error including Parent directory files
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7






