Runtime Error 13 Type Mismatch

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
ICTIndikaAsked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I think this should be enough:
Dim objChart As Chart
Set objChart = Me.Graph1.Object
0
 
ICTIndikaAuthor Commented:
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
ICTIndikaAuthor Commented:
I have checked I do have the Microsoft Graph 15 object Library reference checked. Is there any other I should have?
0
 
pdebaetsCommented:
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
 
ICTIndikaAuthor Commented:
After checking I was missing the proper reference.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.