Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

When you use FrontPage 2003, the Database Editor page displays all the database results after you perform a Web search, and it is difficult to quickly find the record that you want


View products that this article applies to.

Symptoms

When you use Microsoft Office FrontPage 2003, the Database Editor page displays all the database results after you perform a Web search. Therefore, it is difficult to quickly find the record that you want and to select the record for modification or deletion.

↑ Back to the top


Cause

This problem occurs because the Database Interface Wizard does not include the search function.

↑ Back to the top


Workaround

To work around this problem, create a search option for the Database Editor page. To do this, follow these steps:
  1. Open the Web site in FrontPage 2003.
  2. After you create the database interface pages, double-click the database1_Interface folder under Folder List, double-click the Results folder, double-click the editor folder, and then double-click the List.asp file.

    Note "database1" is the name of the Web site database.
  3. Click File, and then click Save As.
  4. Type a file name to back up the List.asp file in a location of your choice.
  5. Open the List.asp file again.
  6. Select the <table> and </table> tags that display the results. Then, drag the table outside the <form> and </form> tags.
  7. Double-click the database results region, and then click Next four times.
  8. If Split records into groups is selected, click Display all records together instead, and then click Finish.
  9. Double-click the database results region again.
  10. In the Database Results Wizard window, click the appropriate language option (ASP or ASP.NET) and the appropriate database connection.
  11. Click Next, click Custom query, and then click Edit.
  12. In the SQL Statement box, type the following string:
    SELECT * FROM TableName WHERE ColumnName LIKE
    Note In this string, replace TableName with the actual name of the table. Then, replace ColumnName with the actual name of the column on which you want to filter.
  13. Click Insert Parameter, type the parameter name that you must pass to the query, and then click OK two times. For example, type sName, and then click OK two times.

    Note The SQL statement should then look similar to the following:
    SELECT * FROM TableName WHERE ColumnName LIKE ::sName::
  14. Add "%" before and after the "::sName::" parameter in the Custom Query dialog box. The result should then look similar to the following:
    %::sName::%
  15. Click OK, click Next, click More Options, and then click Defaults.
  16. Click the parameter name, click Edit, and then type a default value in the Value box. Then, click OK two times.
  17. Click to clear the Limit number of returned records to check box, and then click OK.
  18. Click Next two times, and then click Display all records together.
  19. Click to select the Add search form check box, and then click Finish.
  20. Double-click the key that must be hyperlinked from the database results region. You must create a hyperlink for this key to send information to the details page.
  21. Click to select the Display as hyperlink check box, and then click Hyperlink Parameters.
  22. In the Path box, type the details page name.

    Note By default, the details page name is Detail.asp.
  23. Click Add, and then click Key in the Name list. Then, click OK three times.
  24. Drag the <table> and </table> tags that display the results to between the <form> and </form> tags.

    Note The <table> and </table> tags are created for the search option.
  25. Right-click the hyperlink that you created, and then click Hyperlink Properties.
  26. In the Edit Hyperlink dialog box, click Target Frame.
  27. In the Target Frame dialog box, type detail in the Target setting box. Then, click OK two times.
  28. Insert a column to the left of the hyperlink that you created. Then, click Insert, click Form, and then click Checkbox.
  29. Double-click the check box. Then, in the Name box, type the following string:
    %=FP_FieldURL(fp_rs,Key)%
    Note In this string, replace Key with the table field name that must be passed to the details page.
  30. Click OK.
Notes
  • You can test whether this search option works by using the backup page that you created in step 3.
  • The format of the Database Results Wizard changes when you change options for the database results region.

↑ Back to the top


Keywords: KB907235, kbprb, kbtshoot

↑ Back to the top

Article Info
Article ID : 907235
Revision : 1
Created on : 11/29/2005
Published on : 11/29/2005
Exists online : False
Views : 268