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.
 

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

Back
Top