ID: Q124228
1.00 WINDOWS kbtool xlquery
The information in this article applies to:
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.
The above error message will appear if the following conditions are true:
-and-
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.
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.
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).
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
Keywords : xlquery
Version : 1.00
Platform : WINDOWS
Last Reviewed: September 15, 1996