Excel DAM: Finding Numbers in a Text Field

Last reviewed: November 2, 1994
Article ID: Q61297
The information in this article applies to:
  • Microsoft Excel for the Macintosh, versions 2.2 and 3.0

SUMMARY

In Microsoft Excel for the Macintosh, to find a number in a text field using the Data Access Macro (DAM), computed criteria must be used. If a computed criteria is not used, the SQL query Microsoft Excel creates will not have the proper syntax.

MORE INFORMATION

If the following is true

   Table Name: TEST.CUSTOMER
   Field Name: CUST_CODE

the computed criteria should appear as follows:

   A1 :
   A2 :  TEST.CUSTOMER:CUST_CODE="15"

Define A1:A2 as the criteria range.

This will create the following line in the SQL query

   WHERE TEST.CUSTOMER.CUST_CODE = "15";

which is the proper syntax when searching for numbers in a text field.

If a computed criteria is not used, a CL1 error will be returned.

For more information on computed criteria, see pages 371-378 in the "Microsoft Excel User's Guide," version 3.0 manual. If you are using Excel 2.20, see page 171 in the "Microsoft Excel Reference," version 2.2 manual.


KBCategory: kbother
KBSubcategory:

Additional reference words: DB2 Sybase Oracle Informix CL1 Language


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: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.