P
Paul3rd
Hello,
I have placed graphics on my Access 2003 forms with no problem but I cannot
get the following code to work correctly on a unbound Access report.
Private Sub FormHeader_Format(Cancel As Integer, FormatCount As Integer)
Dim strPath As String
strPath = "Me.txtImgLogo"
Me.ImgLogo.Picture = strPath
Me.ImgLogo.Visible = True
End Sub
(Intellisense did not provide the .Picture property, I typed it in)
I receive a Runtime Error '2220'
Can't open file 'Me.txtImgLogo'.
Where:
ImgLogo is an embedded picture in the header.
txtImgLogo is a text box containing a file path to the image.
Can anyone help?
Thanks in advance
Paul
I have placed graphics on my Access 2003 forms with no problem but I cannot
get the following code to work correctly on a unbound Access report.
Private Sub FormHeader_Format(Cancel As Integer, FormatCount As Integer)
Dim strPath As String
strPath = "Me.txtImgLogo"
Me.ImgLogo.Picture = strPath
Me.ImgLogo.Visible = True
End Sub
(Intellisense did not provide the .Picture property, I typed it in)
I receive a Runtime Error '2220'
Can't open file 'Me.txtImgLogo'.
Where:
ImgLogo is an embedded picture in the header.
txtImgLogo is a text box containing a file path to the image.
Can anyone help?
Thanks in advance
Paul