Picture problems again, please help!

G

Gina Whipp

Hi All,

I have an ImageControl works fine UNLESS someone moves the picture. So I
tried the below on the form close to erase the path that is being stored,
for whatever reason and then a the new path shows up and then the picture
gets moved again. (The message is FFE can't open the file 'FilePathHere'.
It is not error 2220 because I have a message to trap that and it works just
fine. What I can't figure out is even when I delete that path, it comes
back. I thought it would stay "(none)". Upon that failing I tried setting
it to "" (see below) on the Form_Close, that's not working. Any
suggestions?

Me.imgImage.Picture = ""
 
G

Gina Whipp

Nevermind, tried the old standby, deleted image control and put in a new
one, all is working fine now. Not sure why that happened but glad that's
over.

Gina Whipp
 
G

Gina Whipp

Damian S,

That wouldn't work because I'd have to be 'flying' all over the place to
install this database. But thanks for the suggestion.

Gina Whipp
 
B

Bill

Gina,
Sounds familiar. Try
Me.imgImage.Picture = "(none)"

If you set the path in the Open Event, you can check
for the existance of the image file first using the Dir
function. I assume your control specifies "Link".

Bill
 
G

Gina Whipp

Bill,

I tried that also to no avail. I think replacing the image control was the
ticket... for some reason it might have become 'corrupt'?
 
Top