ACC: Incorrect ChangeChart Example in Building Applications

ID: Q153466


The information in this article applies to:
  • Microsoft Access versions 97, 7.0


SYMPTOMS

Advanced: Requires expert coding, interoperability, and multiuser skills.

The ChangeChart_Click() sub procedure on page 271 of the "Building Applications with Microsoft Access for Windows 95" manual causes the error, (Run-time error 1000) "Application does not have ChartTitle property."


RESOLUTION

Change the following line in the ChangeChart_Click() procedure


   obj.ChartTitle.Caption = strNewTitle 
to read as follows:

   obj.Chart.ChartTitle.Caption = strNewTitle 


REFERENCES

For more information about using Microsoft Graph as an OLE automation server, please refer to VBA_GRP.HLP. If you need to obtain this file, please see the following article in the Microsoft Knowledge Base:

Q128364 ACC2: Microsoft Graph VBA Help File Available in Download Center

Additional query words: prb

Keywords : kberrmsg kbinterop kbdta
Version : WINDOWS:7.0,97
Platform : WINDOWS
Issue type : kbprb


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