Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Runtime Error 13 Type Mismatch

Posted on 2014-03-10
6
Medium Priority
?
615 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

610 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