graph.chart does not work 
Author Message
 graph.chart does not work

Hello all,

the code below gives error 'type mismatch'. The reference to msgraph is set,
so that's not the problem. MSAccess 97.

Dim chrt As Graph.Chart
Dim Xas As Graph.Axis
Set chrt = Me.Graph0.Object  <---there!!
Set Xas = chrt.Axes(xlValue, 1)

Thanx

Frank



Tue, 20 Aug 2002 03:00:00 GMT  
 graph.chart does not work
Frank,

You can't use early binding with Graph. Use late binding instead, e.g.:
  Dim chrt As Object
  Set chrt = Me.Graph0.Object

See KB article
http://support.microsoft.com/support/kb/articles/Q190/7/35.ASP for more
details.

Simon Lewis


Quote:
> Hello all,

> the code below gives error 'type mismatch'. The reference to msgraph is
set,
> so that's not the problem. MSAccess 97.

> Dim chrt As Graph.Chart
> Dim Xas As Graph.Axis
> Set chrt = Me.Graph0.Object  <---there!!
> Set Xas = chrt.Axes(xlValue, 1)

> Thanx

> Frank



Thu, 22 Aug 2002 03:00:00 GMT  
 graph.chart does not work
Simon,
the code works fine on one machine and not on the other. It's both NT4 and
both Access97. It must be some setting outside Access, but which one?

Frank
Simon Lewis heeft geschreven in bericht ...

Quote:
>Frank,

>You can't use early binding with Graph. Use late binding instead, e.g.:
>  Dim chrt As Object
>  Set chrt = Me.Graph0.Object

>See KB article
>http://support.microsoft.com/support/kb/articles/Q190/7/35.ASP for more
>details.

>Simon Lewis



>> Hello all,

>> the code below gives error 'type mismatch'. The reference to msgraph is
>set,
>> so that's not the problem. MSAccess 97.

>> Dim chrt As Graph.Chart
>> Dim Xas As Graph.Axis
>> Set chrt = Me.Graph0.Object  <---there!!
>> Set Xas = chrt.Axes(xlValue, 1)

>> Thanx

>> Frank



Fri, 23 Aug 2002 03:00:00 GMT  
 graph.chart does not work

Quote:
>>> The reference to msgraph is set,

Is msgraph in the same location on both machines?  Unlike
dao/vba msgraph does not automaticly go to "microsoft shared'
-- it goes to the Office root directory, which may be anywhere.

Quote:
>>http://support.microsoft.com/support/kb/articles/Q190/7/35.ASP for more

This is certainly a very strange article - the review date is november
10, 1999, which implies that it is still current.
Quote:

>Simon,
>the code works fine on one machine and not on the other. It's both NT4 and
>both Access97. It must be some setting outside Access, but which one?

>Frank
>Simon Lewis heeft geschreven in bericht ...
>>Frank,

>>You can't use early binding with Graph. Use late binding instead, e.g.:
>>  Dim chrt As Object
>>  Set chrt = Me.Graph0.Object

>>See KB article
>>http://support.microsoft.com/support/kb/articles/Q190/7/35.ASP for more
>>details.

>>Simon Lewis



>>> Hello all,

>>> the code below gives error 'type mismatch'. The reference to msgraph is
>>set,
>>> so that's not the problem. MSAccess 97.

>>> Dim chrt As Graph.Chart
>>> Dim Xas As Graph.Axis
>>> Set chrt = Me.Graph0.Object  <---there!!
>>> Set Xas = chrt.Axes(xlValue, 1)

>>> Thanx

>>> Frank



Fri, 23 Aug 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Herlp: LIKE in SQL doe not work anymore

2. Resizing Excel chart object not working

3. Refresh chart data, not entire chart

4. Doing charts with the API

5. Microsoft Graph 2000 Chart

6. Unable to get SeriesCollection property of Chart Class - Graph error

7. Access: Charts & Graphs

8. Creating charts/graphs from database in Access

9. Charts and Graphs in Forms and Reports

10. Manipulating MS Graph 8 chart ChartTitle in VBA

11. Problems updating MS Graph charts in Powerpoint using Excel VBA

12. graph: chart update

 

 
Powered by phpBB® Forum Software