Query: Error Adding Criteria to Float--Required Field

Last reviewed: September 12, 1996
Article ID: Q124228
The information in this article applies to:
  • Microsoft Query for Windows, version 1.0
  • Microsoft Excel for Windows, version 5.0

SYMPTOMS

In Microsoft Query version 1.0, when you add criteria to a field in an SQL Server table, you may receive the following error message

   Column <field name> can't be used with the operator <operator>

where <field name> is the field the criteria that is added to and <operator> (for example IS GREATER THAN) is the operator you are using.

CAUSE

The above error message will appear if the following conditions are true:

  • The data type is float

    -and-

  • The Required option is active

WORKAROUND

To work around this problem, disable the Required option for the specified field. When you disable this option, the field can contain a null value.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft Products listed at the beginning of this article. This problem was corrected in version of Microsoft Query that ships with Microsoft Excel version 5.0c for Windows.

MORE INFORMATION

The Required option requires that data be entered in the field. If Required is not selected, the field can contain a null value (that is, the field can be left blank).

REFERENCES

For more information about using SQL Server with Microsoft Query, select ODBC Drivers in the Microsoft Query Help Contents, then select SQL Server.


KBCategory: kbtool
KBSubcategory: xlquery

Additional reference words: 1.00 5.00 Sqlserver



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.