Article ID: 265320 - Last Review: August 27, 2002 - Revision: 1.1 FP2000: Error Message When You Query the DatabaseThis article was previously published under Q265320 On This PageSYMPTOMS
If you use the Database Results Wizard to create a page that uses a search form to query a database, you may receive an error message similar to the following in the Database Results region when you preview the page in a Web browser:
Database Results Error Description: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '(EmployeeID = AND FirstName = '')'. Number: -2147217900 (0x80040E14) Source: Microsoft OLE DB Provider for ODBC Drivers One or more form fields were empty. You should provide default values for all form fields that are used in the query. CAUSE
The behavior occurs because empty number fields appear to mismatch the expected data type. Empty fields are not recognized as numbers.
RESOLUTION
To resolve this behavior, provide a default value for any database fields with a numeric data type. To do this, you must first determine which fields have Number or AutoNumber data types, and then edit the database results properties criteria to specify default values. To do this, follow these steps.
Step 1: Check Database Fields for Number or AutoNumber Data Types
Step 2: Edit the Database Results Properties Criteria
MORE INFORMATIONFor additional information about working with FrontPage and Access Data Types, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
296653
(http://support.microsoft.com/kb/296653/EN-US/
)
FP2000: Error Querying Date/Time Fields in Access Database
| Article Translations
|
Back to the top
