?
Solved

Runtime Error 13 Type Mismatch

Posted on 2014-03-10
6
Medium Priority
?
612 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
[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
  • 3
  • 2
6 Comments
 
LVL 143

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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1500 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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…
Suggested Courses

771 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