Solved

Runtime Error 13 Type Mismatch

Posted on 2014-03-10
6
600 Views
Last Modified: 2014-03-10
I am getting this error based on the code below.  Can someone tell why I would get this error?

Dim objChart As Chart
Set objChart = Me.Graph1.Object.Application.Chart
0
Comment
Question by:ICTIndika
  • 3
  • 2
6 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 39917392
I think this should be enough:
Dim objChart As Chart
Set objChart = Me.Graph1.Object
0
 

Author Comment

by:ICTIndika
ID: 39917424
I am still getting the same error. I am using Access 2013, I am wondering if I don't have the right library reference.
0
 

Author Comment

by:ICTIndika
ID: 39917477
I have checked I do have the Microsoft Graph 15 object Library reference checked. Is there any other I should have?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 39917499
what are the references you have activated in your project?
I don't have ms access 2013, so I cannot check what references you have.
can you check with full object type the me.graph1.object would be?
0
 
LVL 12

Expert Comment

by:pdebaets
ID: 39918143
It is interesting that you have a variable named "obj...". Could it be that this is supposed to be a variable of type Object?

Dim objChart As Object

?
0
 

Author Closing Comment

by:ICTIndika
ID: 39919663
After checking I was missing the proper reference.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now