Hi!
I've got an XY chart (objScatterGraph) which I use for mapping. The background image is the whole of England and Wales, and I'd like to be able to change this to specific regions depending on the choice of a combo box (cmbRegion). However, the following...
... on an OnChange event gives me Run-time error '5' Invalid procedure call or argument.
Clicking Debug highlights
Any ideas? I'm running Access 2003 and have referenced the Microsoft Graph 11.0 object library.
Thanks,
Iain
I've got an XY chart (objScatterGraph) which I use for mapping. The background image is the whole of England and Wales, and I'd like to be able to change this to specific regions depending on the choice of a combo box (cmbRegion). However, the following...
Code:
Dim RegName As String
Dim FilePath As String
Dim objChart As Graph.Chart
RegName = Me.cmbRegion
FilePath = "S:\Images\" & RegName & ".jpeg"
Set objChart = Me!objScatterGraph.Object
With objChart.ChartArea.Fill
.UserPicture picturefile:=FullFilePath
.Visible = True
End With
Me.objScatterGraph.Requery
... on an OnChange event gives me Run-time error '5' Invalid procedure call or argument.
Clicking Debug highlights
Code:
.UserPicture picturefile:=FullFilePath
Any ideas? I'm running Access 2003 and have referenced the Microsoft Graph 11.0 object library.
Thanks,
Iain