Verifying file type

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

On an Access form, how do I verify an user input image file with pathname is
a valid JPG file type?

For example, users may incorrectly labelled a non JPG file with JPG
extension. Any ideas?
 
Hi Charles

I haven't tried it, but you could try setting the Picture property of an
image control to the name of the supposed image file. I'm sure you would
get some error raised if the file was not a valid image. I'm guessing you
could make the image control invisible if you wish, and it would still
attempt to load the file.
 
Back
Top