Hi!
I am trying to link an images (.png) onto a form. I have a folder of all the images I want but I want the path to be relative. So that if I move the access file and the images folder to a new location, it will still work.
In the properties for the image, It works fine as C:\Users\john\Desktop\image1.png but what I am looking for is the ability to use "\\images\image1.png" as the file will always be in that relative folder to the db.
Does anyone know the correct syntax for this? putting image1.png in the same directory and just using image1.png works, but this won't be very tidy with 100+ images.
I have tried:
\\images\image1.png
images\image1.png
\images\image1.png
With PictureType set as linked.
I know from searching it is possible through VBA by getting the root directory of the folder and appending the filename. Don't really want to go this root. I also don't particularly want to create a table to store the images or links.
Thanks
I am trying to link an images (.png) onto a form. I have a folder of all the images I want but I want the path to be relative. So that if I move the access file and the images folder to a new location, it will still work.
In the properties for the image, It works fine as C:\Users\john\Desktop\image1.png but what I am looking for is the ability to use "\\images\image1.png" as the file will always be in that relative folder to the db.
Does anyone know the correct syntax for this? putting image1.png in the same directory and just using image1.png works, but this won't be very tidy with 100+ images.
I have tried:
\\images\image1.png
images\image1.png
\images\image1.png
With PictureType set as linked.
I know from searching it is possible through VBA by getting the root directory of the folder and appending the filename. Don't really want to go this root. I also don't particularly want to create a table to store the images or links.
Thanks