|
-
Dec 12th, 2005, 07:24 AM
#1
Thread Starter
Fanatic Member
MsChart problem...[RESOLVED]
In Access (VBA) this code doesen't work. But in VB it works?
VB Code:
Private Sub Command1_Click()
Dim oleGrf As Object
Set oleGrf = Me.OLEchart.Object
oleGrf.ChartTitle.Text = "Test"
Set oleGrf = Nothing
End Sub
Why?
Last edited by Pirre001; Dec 12th, 2005 at 11:07 AM.
-
Dec 12th, 2005, 07:34 AM
#2
Re: MsChart problem...
 Originally Posted by Pirre001
In Access (VBA) this code doesen't work. But in VB it works?
VB Code:
Private Sub Command1_Click()
Dim oleGrf As Object
Set oleGrf = Me.OLEchart.Object
oleGrf.ChartTitle.Text = "Test"
Set oleGrf = Nothing
End Sub
Why?
I don't know but I suspect the VBA people will.
Moved to Office Development.
-
Dec 12th, 2005, 09:55 AM
#3
Re: MsChart problem...
Pirre
Your syntax look right.
Here is a one liner that should change your Chart Title
VB Code:
Me.OLEchart.Object.ChartTitle.Text = "Your text here"
The attache Db shows this in action.
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Dec 12th, 2005, 11:02 AM
#4
Thread Starter
Fanatic Member
Re: MsChart problem...
Big Thanks Kenny!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|