To have the page appear without the error described in the
"Symptoms" section of this article, use a default value for any database field
that has a numeric data type. First determine which fields have Number or
AutoNumber data types, and then specify default values for the numeric data
types used by the Database Results region. To do this, follow these steps:
- Identify the fields that have Number or AutoNumber data
types:
- In FrontPage, click Folders on the View menu. In the Folder list, double-click the Fpdb folder to open it. Double-click the Microsoft Access database
file that you are using with your query.
- In Access, highlight the table or query that is the
source of data for the search form, and then click Design.
- Note the names of any fields that have a data type of Number or AutoNumber.
- Close the file and quit Access.
- Specify a default value for the numeric data types:
- In FrontPage, right-click the Database Results region, and then click Database Results Properties on the menu that appears.
The Database Results Wizard
starts. - Click Next two times.
You should be at the third step in the
Wizard. - Click More Options. In the More Options dialog box, click Defaults.
- Select a field that has the Number or AutoNumber data
type and click Edit.
- In the Value box, type a default numeric value. For example, type
0 (zero), and then click OK.
- Repeat steps d and e for each field that has a Number
or AutoNumber data type.
- Click OK twice to return to the third step in the wizard.
- Click Next twice, and then click Finish.
- On the File menu, click Save.
- On the File menu, click Preview in Browser.