! Problem with picture controls

  • Thread starter Thread starter Savvoulidis Iordanis
  • Start date Start date
S

Savvoulidis Iordanis

How can I avoid the message that the picture file is not found, when
I change the directory of the app, or move it to another pc?

Can a picture control exist without a picture inside it initially?
I want to only set it through code
 
Hi -

This is Steven from Microsoft Access Technical Support replying to your
newsgroup post.

An Image control that contains Linked images requires the Picture property
to be populated with a path and filename. Therefore, an error will occur if
either the path, filename, or path and filename are invalid. You will need
to ensure that the path and filename are always valid. If the path or
filename is invalid, an error will be thrown, and it is a design error.
This means that the error cannot be trapped at runtime and the only
resolution is to ensure that path and filename are correctly assigned to
the Picture property, and when you move the application to some other
computer, you will have to copy the image as well.

Please let me know if this solves your problem or if you would like further
assistance. I look forward to hearing from you.

Sincerely,
Steven Parsons [MSFT]
Microsoft Access Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! (http://www.microsoft.com/security)
 
Steven Parsons said:
Hi -

This is Steven from Microsoft Access Technical Support replying to your
newsgroup post.

An Image control that contains Linked images requires the Picture property
to be populated with a path and filename. Therefore, an error will occur if
either the path, filename, or path and filename are invalid. You will need
to ensure that the path and filename are always valid. If the path or
filename is invalid, an error will be thrown, and it is a design error.
This means that the error cannot be trapped at runtime and the only
resolution is to ensure that path and filename are correctly assigned to
the Picture property, and when you move the application to some other
computer, you will have to copy the image as well.

Please let me know if this solves your problem or if you would like further
assistance. I look forward to hearing from you.

Sincerely,
Steven Parsons [MSFT]
Microsoft Access Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! (http://www.microsoft.com/security)

If one uses the Form or Report open methods to set the path and filename in
code, then the error can be trapped at run time.
It is a mistake to say an invalid path is a "design error".
 
Back
Top