does anyone know how to change the legend through code. i found one thread that makes reference to the Legend property but i can't seem to get it to work. not to mention that the microsoft help sucks.
in Access open VBE. Click Tools > References. Scroll down and pick Microsoft Graph x.x Project Library. Click OK.
Still in VBE open the Object Browser. In the first drop down pick "graph", click on the class you are interested in and then click the question mark to the right.
i don't know if it matters but "Microsoft Graph x.x Project Library" isn't listed. i do have "Microsoft Graph 9.0 Object Library" though. when i select this, it still doesn't work. i get the run-time error #438 - "Object doesn't support this property or method". any ideas?
i was hoping to change the labels in the legend.
you indicated "Microsoft Graph 9.0 Project Library" mine says: "Microsoft Graph 9.0 Object Library". i'm not sure if this matters. regardless, i can't even change the font, the font weight, or the visible properties for the legend as you previously posted.
it's checked and at the top of the references. still doesn't work. a test db would be great. my email address is larrylipton@hotmail.com
thanks for the help.
ok. i got the sample and it works fine. i'm trying to use the legend propery on a report as opposed to a form as you have showed me. so now i can get it to work on a form in my database but not on a report.
hey. i have it working in the on format event of the report. i am looking for a way to change the labels in the legend through code. for example, on a bar graph, have the two years represented change. is this possible? does anyone know of a good site to reference chart?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.