P
Peter Hibbs
In Access 2003 -
I have a form with an Image control (the image is a .ICO icon type
file) called imgGreen. I am trying to set the BorderStyle property of
the control to Solid in a sub-routine by passing the control name to
the routine.
This is the basic sub-routine code :-
Public Sub IconBorders(vControl As Control)
vControl.BorderStyle = 1
End Sub
and I call the routine like this :-
IconBorders (imgGreen)
When the code is run it highlights the calling code above and gives
the error message -
Run Time error '438'
Object doesn't support this property or method.
Using the code :- imgGreen.BorderStyle = 1 works OK.
How can I change an Image control property in a sub-routine.
Peter Hibbs.
I have a form with an Image control (the image is a .ICO icon type
file) called imgGreen. I am trying to set the BorderStyle property of
the control to Solid in a sub-routine by passing the control name to
the routine.
This is the basic sub-routine code :-
Public Sub IconBorders(vControl As Control)
vControl.BorderStyle = 1
End Sub
and I call the routine like this :-
IconBorders (imgGreen)
When the code is run it highlights the calling code above and gives
the error message -
Run Time error '438'
Object doesn't support this property or method.
Using the code :- imgGreen.BorderStyle = 1 works OK.
How can I change an Image control property in a sub-routine.
Peter Hibbs.