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.

FP2000: Syntax Error in Database Region When Using a Less Than Comparison


View products that this article applies to.

This article was previously published under Q229300

↑ Back to the top


Symptoms

After you use the Database Results Wizard to insert a database region and you specify criteria or a file name that uses a "less-than" comparison, the following error message may appear:
Database Results Error
Description: [Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator) in query expression '(CategoryID < 34)>'.
Number: -2147217900 (0x80040E14)
Source: Microsoft OLE DB Provider for ODBC Drivers
NOTE: The stated error message may vary based on your actual database and the query you are using. However, the error message will contain the phrase "(missing operator) in query expression."

↑ Back to the top


Cause

When you use a "less-than" comparison, FrontPage may not write the proper SQL syntax.

↑ Back to the top


Resolution

To resolve this issue, use one of the following methods.

You Are Not Using a Custom Query

If you are not using a custom query, follow these steps:
  1. Open the page in Page view of FrontPage.
  2. Double-click one of the yellow regions to start the Database Results Wizard.
  3. In the wizard, do not make any changes. Click Next four times, and then click Finish.
  4. Save the page.

You Are Using a Custom Query

You notice extra characters have been added to the end of your custom SQL statement. Usually, only an extra greater than sign is added (>). You need to modify the statement to remove the extra characters.

In most cases, just remove the "greater-than" sign at the end of your SQL statement in step 2 and then complete the wizard.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


Keywords: KB229300, kbpending, kbbug

↑ Back to the top

Article Info
Article ID : 229300
Revision : 1
Created on : 10/1/2001
Published on : 10/1/2001
Exists online : False
Views : 266