
Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> I'm trying to put a logo on a report. If I embed the image, then every
> time it changes, I have to modify the report. Not what I want. (Read 150+
[quoted text clipped - 15 lines]
> --
> Brian
In the On_Open event trigger of the REPORT I want the logo displayed in, I put the statement
Me.Image5.PictureData = Forms!frmNameTags.ImgLogo.PictureData
to which I get an error 'Runtime 438 - Object doesn't support this property or method.'
(Image5 is the name of the image in the report, and ImgLog the name of the bound-OLE field on the form.)
This is Access XP, if I didn't mention it before.
--
Brian
>>> Stephen Lebans<ForEmailGotoMy.WebSite.-WWWdotlebansdot...@linvalid.com> February 9, 2006 10:41:12 am >>>
A couple of methods are available:
1) Add a hidden Image control to the form in question. Load your "default
Picture" into this control. Your statement is incorrect that the Image
control cannot contain an Image without a valid/existing path. In design
view, once you select an Image via the control's Picture property, it
remains embedded.
Now whenever you want to display the defaul pic simply do something like:
Me.ThisFormsImageControl.PictureData =
Forms!NameOFtheHiddenForm.ImageControl.PictureData
or
2) Load the default pic into an Image control.
Copy the control's PictureData property to a table containing a Long Binary
field
When you want to display the default pic simply copy the contents of the
field to the PictureData prop of the desired Image control.

Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> I'm trying to put a logo on a report. If I embed the image, then every
> time it changes, I have to modify the report. Not what I want. (Read 150+
[quoted text clipped - 15 lines]
> --
> Brian
Brian Graham - 09 Feb 2006 16:34 GMT
I tried your option 2. I added an image (not bound OLE) to my form and then used the same statement as below. And it worked. :-)
Thanks so much!
--
Brian
>>> Brian Graham<GrahamB@psac-afpc.com> February 9, 2006 11:27:12 am >>>
In the On_Open event trigger of the REPORT I want the logo displayed in, I put the statement
Me.Image5.PictureData = Forms!frmNameTags.ImgLogo.PictureData
to which I get an error 'Runtime 438 - Object doesn't support this property or method.'
(Image5 is the name of the image in the report, and ImgLog the name of the bound-OLE field on the form.)
This is Access XP, if I didn't mention it before.
--
Brian
>>> Stephen Lebans<ForEmailGotoMy.WebSite.-WWWdotlebansdot...@linvalid.com> February 9, 2006 10:41:12 am >>>
A couple of methods are available:
1) Add a hidden Image control to the form in question. Load your "default
Picture" into this control. Your statement is incorrect that the Image
control cannot contain an Image without a valid/existing path. In design
view, once you select an Image via the control's Picture property, it
remains embedded.
Now whenever you want to display the defaul pic simply do something like:
Me.ThisFormsImageControl.PictureData =
Forms!NameOFtheHiddenForm.ImageControl.PictureData
or
2) Load the default pic into an Image control.
Copy the control's PictureData property to a table containing a Long Binary
field
When you want to display the default pic simply copy the contents of the
field to the PictureData prop of the desired Image control.

Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Brian Graham" <GrahamB@psac-afpc.com> wrote in message
news:Do-dnbK5r6Lpx3beRVn-og@magma.ca...
> I'm trying to put a logo on a report. If I embed the image, then every
> time it changes, I have to modify the report. Not what I want. (Read 150+
[quoted text clipped - 15 lines]
> --
> Brian
Stephen Lebans - 09 Feb 2006 19:30 GMT
Option one did not work because:
1) I stated the use of the Image control not the Bound or Unbound OLE Frame
control
2) You would have to place the code in the same Section as the relevant
Image control.
I prefer the second method you got to work because it hides the logo from
the end user.

Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
>I tried your option 2. I added an image (not bound OLE) to my form and then
>used the same statement as below. And it worked. :-)
[quoted text clipped - 59 lines]
>> --
>> Brian