unbound image control?

  • Thread starter steamngn via AccessMonster.com
  • Start date
S

steamngn via AccessMonster.com

Good Morning!
I have an application where the main screen displays an image of a company
logo. The image control is linked, and the user selects the path to the logo
on a form. This works fine. The problem is the "default" source that goes
into the image control is still looking for that file when the form loads,
and it throws an error. The image control won't let me clear the link (make
it unbound?). I've read several links about having a dummy image, but I would
like to make this project easily portable from one computer to the next. Is
there any other way to do this? Can the image control be set to embedded and
then switched to linked? Help!
TIA
Andy
 
A

Arvin Meyer [MVP]

In the form's Load, Open, or Current event (whichever is appropriate in your
case) ad a line of code to either make the image control not visible:

Me.MyControl.Visible = False,

or set the control to an empty string for a blank image:

Me.MyControl.Picture = ""
 
S

steamngn via AccessMonster.com

Hey Arvin,
Thanks for the reply. If Visible is set to false, then the data source is
ignored? I thought I tried that, but maybe I am mistaken. I will play around
with it a bit more and see if I can get this to work.
Andy
In the form's Load, Open, or Current event (whichever is appropriate in your
case) ad a line of code to either make the image control not visible:

Me.MyControl.Visible = False,

or set the control to an empty string for a blank image:

Me.MyControl.Picture = ""
Good Morning!
I have an application where the main screen displays an image of a company
[quoted text clipped - 13 lines]
 
A

Arvin Meyer [MVP]

No the data source is not ignored, but no one will be able to see an image.
(More than one way to kill that turkey).
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

steamngn via AccessMonster.com said:
Hey Arvin,
Thanks for the reply. If Visible is set to false, then the data source is
ignored? I thought I tried that, but maybe I am mistaken. I will play
around
with it a bit more and see if I can get this to work.
Andy
In the form's Load, Open, or Current event (whichever is appropriate in
your
case) ad a line of code to either make the image control not visible:

Me.MyControl.Visible = False,

or set the control to an empty string for a blank image:

Me.MyControl.Picture = ""
Good Morning!
I have an application where the main screen displays an image of a
company
[quoted text clipped - 13 lines]

--
There's never enough time to do it right, but there's always enough time
to
write a patch...

Message posted via AccessMonster.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top