Report Image Based On VBA Path

CharlesWhiteman

Registered User.
Local time
Today, 21:51
Joined
Feb 26, 2007
Messages
421
I'm trying to control a variable which is the path to an image which occurs in various reports but keep getting Debug issues. Here is my code can anyone shed any advise please?

OnOpen Event In Report:-

Dim strLogo As String
strLogo = (DLookup("Logo", "Tblconfiguration"))

Me.PicLogo = strLogo
 
runtime error 438

object doesnt support this property or method
 
hi,

I'm assuming the Image is called PicLogo, in which case the syntax is:
Code:
me.piclogo.picture = strLogo

HTH,
Chris
 
What type of control is me.piclogo? Is it an image control? If so use me.piclogo.picture=strlogo
 
I'm using this code as follows:

Dim strLogoFront As String
strLogoFront = (DLookup("Logo", "Tblconfiguration"))
Me.PicLogoFront.Picture = strLogoFront

In order to have a picture objecvt on a form or report there has to be a reference to a physical location, i have found, even if then referencing it as above.

The problem I continue to have is with this code, on other computers, where clearly the original physical location isnt there i get an error message relating to the image object properties location reference but then it works as per my code.

Any ideas?
 

Users who are viewing this thread

Back
Top Bottom