I am back again. I am building a database that will store several different types of images related to equipment and operators.
I am working on the very first form in the database to add an operator and a related image of the operators licences ( don't have the actual images yet so I am just using some sample jpg file.
On the Add_new_operator form I have a combobox that gets the file currently in a directory below where the application is located
(this works fine)
After the user select the image file they want to link to the operator I am trying to open a form that will display the image to make sure the user selected the correct image.
Code:
Me.image_path = Application.CurrentProject.Path & "\" & Forms![Add_new_operator]![Simage]
Me![image_path].SetFocus
Me![viewimage].Picture = Me![image_path].Text
The filed me.image_path is getting the correct value but when I try to open the file in the image object I get run-time error 2220 can not open the file even though the file exist.
I have never worked with images in access before so I am clueless.
this is giving me a headache.