KeithWilliams
Registered User.
- Local time
- Today, 08:56
- Joined
- Feb 9, 2004
- Messages
- 137
Hi,
I found the following article in the MS Knowledge Base:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2000/html/grobjdatasheet.asp
That is what I need to do in my Access 2000 form: populate the data in a Chart (MS Graph object) by VBA. I tried the following code:
Graph_Data.Application.DataSheet.Range("A1").Value = "E"
Graph_Data.Application.DataSheet.Range("B1").Value = "32"
but Access responds with "Compile Error: Method or data member not found", pointing to the Datasheet field.
The KB article says I need a reference to the chart. Is my reference not valid, or not from within MS Access? Graph_Data is the name of my Chart control on the form. I have included a reference to Microsoft Graph 9.0 Object Library in my Tools > References.
I would greatly appreciate any help.
Thanks,
Keith.
I found the following article in the MS Knowledge Base:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2000/html/grobjdatasheet.asp
That is what I need to do in my Access 2000 form: populate the data in a Chart (MS Graph object) by VBA. I tried the following code:
Graph_Data.Application.DataSheet.Range("A1").Value = "E"
Graph_Data.Application.DataSheet.Range("B1").Value = "32"
but Access responds with "Compile Error: Method or data member not found", pointing to the Datasheet field.
The KB article says I need a reference to the chart. Is my reference not valid, or not from within MS Access? Graph_Data is the name of my Chart control on the form. I have included a reference to Microsoft Graph 9.0 Object Library in my Tools > References.
I would greatly appreciate any help.
Thanks,
Keith.