ACC1x: Index Example Incorrect in "Introduction to Programming"

Q109823


The information in this article applies to:


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 : kbusage
Issue type :
Technology :


Last Reviewed: November 4, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.