HOW TO: Use Two Search Criteria to Retrieve Data in FrontPage 2000 (265185)
The information in this article applies to:
This article was previously published under Q265185 SUMMARY
This article describes how to use more than one criterion in a Microsoft FrontPage 2000 search form to generate results from a database.
back to the top
Use Two Search Criteria to Retrieve Data
To use two search criteria to retrieve data from the Northwind sample database, follow these steps:
- Start FrontPage.
- On the File menu, point to New, and the click Web.
- Select a Web site and location for the web, and then click OK.
- On the File menu, point to New, and the click Page.
- Click Normal Page, and then click OK.
- On the Insert menu, point to Database, and then click Results.
- Click Use a sample database connection (Northwind), and then click Next.
- Click Record source, select Employees as the record source, and then click Next.
- Click More Options.
- Click Criteria.
- Click Add.
- In the Field Name box, click Title.
- In the Comparison box, click Contains, and then click OK twice.
- Click More Options.
- Click Criteria.
- Click Add.
- In the Field Name box, click City.
- In the Comparison box, click Contains, and then click OK twice.
- Click Defaults.
- Select Title, and then click Edit.
- Type % in the Value box, and then click
OK.
- Select City, and then click Edit.
- Type % in the Value box, and then click
OK three times.
- Click Next twice, and then click Finish.
- On the File menu, click Save As.
- Type title in the File name box, and then click Save.
NOTE: The default file type should be Active Server Pages (*.asp). - On the File menu, click Preview in Browser.
Note that you can enter either a title (for example, Sales Representative), or a city (for example, Seattle).
back to the top
Modification Type: | Major | Last Reviewed: | 10/27/2002 |
---|
Keywords: | kbhowto kbHOWTOmaster KB265185 |
---|
|