Hi there,
I am creating a form in Access which basically filters through several tables and produces some statistics, now according to these statistics when the user clicks a particular button I would like to load all images from a seperate directory which the user can browse.
I am not asking for the code to do this but i thought using an image object, creating an array of strings (location of images) and some simple programming would allow me to produce something that would achieve my purpose.
I have stumbled at the first hurdle, I thought I would create a temp form so that i can practice on and work on. I have created an image with a default picture and have a single button which on click has the following line
When the button is clicked a runtime error of 2220 i.e cannot open this file is encountered.
I have no idea what this means as the path is correct and from what i have understood the JPG format is ok to use?
Am i on the wrong track by using the image object or I am just forgetting something simple such as a property on the image etc?
Thanks for your time
Rakesh Garala
I am creating a form in Access which basically filters through several tables and produces some statistics, now according to these statistics when the user clicks a particular button I would like to load all images from a seperate directory which the user can browse.
I am not asking for the code to do this but i thought using an image object, creating an array of strings (location of images) and some simple programming would allow me to produce something that would achieve my purpose.
I have stumbled at the first hurdle, I thought I would create a temp form so that i can practice on and work on. I have created an image with a default picture and have a single button which on click has the following line
Code:
Image1.Picture = LoadPicture("C:\REDPUMP.JPG")
When the button is clicked a runtime error of 2220 i.e cannot open this file is encountered.
I have no idea what this means as the path is correct and from what i have understood the JPG format is ok to use?
Am i on the wrong track by using the image object or I am just forgetting something simple such as a property on the image etc?
Thanks for your time
Rakesh Garala