ACC1x: Index Example Incorrect in "Introduction to Programming"

Last reviewed: June 8, 1997
Article ID: Q109823
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

SYMPTOMS

Page 113 of the Microsoft Access "Introduction to Programming" manual describes the Seek method of finding records. There is an example on that page that includes the line

   Cust.Index = "[Company Name]"

to set the index. This line results in the error message "'[Company Name]' is not an index in this table."

RESOLUTION

The line that sets the index should not include brackets. The correct line should read:

   Cust.Index = "Company Name"

STATUS

This problem no longer occurs in Microsoft Access version 2.0.


Keywords : DcmMnl kbusage
Version : 1.0 1.1
Platform : WINDOWS
Hardware : X86
Issue type : kbdocerr


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: June 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.