?
Solved

Microsoft Chart 6.0 in Access 2000 OLE Error

Posted on 2005-03-18
4
Medium Priority
?
325 Views
Last Modified: 2008-02-01
I have created a report and placed a Microsoft Chart 6.0 ActiveX object in it, and I was attempting to link the chart to a query result set...
I've gotten to the following point with my code:
    Dim objChart As Chart
    Set objChart = Me.MyChart.Object.Application.Chart
    objChart.DataTable = "Qry Milestones by Program 04"


And on the set objChart line I keep getting an error message that states:
Run-time error '2771':

The bound or unbound object frame you tried to edit doesn't contain an OLE object


Please help - The query results contain data categorized and totaled by month, and I need to use this control so that I can have a combonation chart with bars, stacked bars, lines, and area graphs for different series of data.

Thanks!
0
Comment
Question by:HSdba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 85
ID: 13574885
Is this on your development machine, on an enduser machine? Do you have the licensing necessary to use the control?

If this is on an enduser machine, you'll have to make sure that you correctly deploy the control to all users.
0
 

Author Comment

by:HSdba
ID: 13575047
The .mdb file is shared via a network drive by 6-12 users.  I am working with a separate copy of it right now for development purposes.  As for licensing, how would I figure out if my client has it?  I didn't actually design the database itself - I "inherited" it, but the control is available on the list of "other tools"  
0
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 13575326
You can write a routine that would check for the file (it's named "mschart.ocx", btw), but this is a very tedious process and unless you're VERY sure of what you're doing you could end up breaking existing applications. Generally your install program would do this ... I use Wise, but any commercial installer can do this for you.

BTW, this control is part of VB6 ... which means there's NO support for it in the MSAccess environment, and Access in VERY picky about ActiveX controls. There may also be dependancies required for this control (i.e. other files which must be installed for it to work correctly) ... I'm not sure as I don't use it. If you don't have VB6 installed on your machine, then you don't have design-time license to use this control ... therefore you'll get the error you mention. The fix is to either (a) install VB6 on your machine or (b) do away with the reference or (c) change to a 3rd party control which is designed to work in the Access environment. There are some 3rd party chart controls which profess to work with Access, but I haven't tried them.
0
 

Author Comment

by:HSdba
ID: 13741627
Thanks - I figured out how to do it using Graph 2000
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question