Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Image Link Updates
Allan McConnell 
     
4 years ago
I have created a Bar Code database to capture 3 floors of surplus furniture and as I captured all the data, I also took a photograph of every piece so that Management can view them and decide if they will keep it or not.

I have linked every photograph, which resides on my local drive. Unshared for the moment. I have over 300 items linked to a photo.

Now that is fine, but I now considered that I may have to share that database and move all the files to another folder that is shared...in comes the problem. Re linking over 300 images...what did I do?

The links are all linked with for example: C:\MyDocs\Furniture\photofolder\Photo.jpg

A big tip for all new users... Create a field in your table that only has the Photograph name example: Photo.jpg

I then created a separate table (or it could be to an unbound field for that matter) and then created a form with a text box, to drop your new link into.
So had a separate New link is Y:\CommonShared\Furniture\photofolder

I used a Append query to concatenate the details together which works a treat. I can change my photo location and update at the click of a button.

Now what I am looking for is how can we do this using Record set or VBA code? Richard?

Scott Axton  @Reply  
        
4 years ago
I hope I'm reading your question correctly.  If not please set me straight.

It appears that you were on the right path by storing the photo name separately but then, using the append and concatenation undid your own work.

The best way, in my opinion, is to store the images in a folder underneath your database.
        --MyDatabase
           --Images
That way you can refer to the images in your code not in the actual path in the field.

Watch the following:

Images
Product Catalog

The Access Imaging Seminar shows you how to pick a file on your computer and copy it to your images folder linking it properly.
Allan McConnell OP  @Reply  
     
4 years ago
Hi Scott

No what happened is that I originally created my database to my own local folder with no intentions of sharing the information. So the folder was in a local drive not shared with anyone. (Very much like with Richards Template for the Image Session, which contains images which is no longer linked.)

What I needed to do was move the photos to a shared folder, so that I could give someone a copy of my database (Frontend if needs be), so that they could manage the files if I  am away. This where my lesson came in...having to re-link all the photo's.

This is more a tip for new players and for those who may find that one day they need to move the location of their Photo's. Our Council has just experienced that and again my shared data had to be moved to a Share point location. Removing the split in my database and then Re-splitting  it into SharePoint.

In this case I had over 300 images to re-link, So this is where I am saying to save any hassles I did the following

1) Created a filed just to record that actual photo. Example: MyCat.jpg
2) Created a form and a table that I could drop the new link into. Example From C:\My Path\  to Y:\SharedFolder\MyPhotos...
3) Created a Append Query to concatenate the the path and the images together again, in the table holding the links.

So now all I do is copy the new path, drop the link into the form I created, click the button to run my query and bingo all my photographs are linked to the new path.

In Richards seminar on Images he physically types in the "Photograph" name. In this case the variable is the name of the photograph, the constant is the folder that images resides. When I was faced with moving the link, the photographs had to be relinked to the new path...so either type them all back in or create something ahead of time so that at any moment one has to move the link it is as simple as copy paste click.

Now this is where I am not yet confident and I am certain that to do the move would be quicker using record sets or some VB code rather than creating a query.

I also sharing what I experienced and what I had to do to overcome something that would be daunting for a new player.
Scott Axton  @Reply  
        
4 years ago
Allen what I was (not so clearly) trying to indicate was I would only store the photo name in the field.

Then using a field, say "SystemImagesPath" you could assign the images folder independently.  This would make any future move much easier.

See System Defaults video for reference.

Example1:
In the case of saving the full path in the picture field you would have
C:\Users\sgaxt\Pictures\picture1.jpg,
C:\Users\sgaxt\Pictures\picture2.jpg, etc. in the individual records.
You have to update each record.

Example2:
In the case of setting the path in a SettingsT you would make one change after copying / moving your pictures and all records would be correctly linked.

SystemImagesPath = C:\Users\sgaxt\Pictures
In the future I move to the server.  I make one change to Y:\SharedFolder\MyPhotos

In your form you would reference the path to the photo as

SystemImagesPath & "\" &  ImageFileName

Of course you would need to look up the SystemImagesPath from SettingsT first.

By storing only the file name in the field, that way you make one change in the SettingsT and 300, 500, or 10,999 images are instantly updated instead of having to update the individual records.

I hope that makes sense.






Allan McConnell OP  @Reply  
     
4 years ago
Hi Scott. I see what you are saying now and understand that now a little clearer.

Basically what you are saying that would be fine if it was set up that way initially, with the two fields. What I was saying is that if you follow Richards seminar on storing Images, he uses and demonstrates your example 1.

When I set my original database with that exact format and then ran into a server change. That is when I had to use all my knowledge to avoid having to re-type in and up date every record.

I am also saying that anyone who has set up their database as your example 1 (which is how Richards seminar set it up) will possibly run into that problem, as I had.

The steps taken to fix it is what I was aiming for with my post. I mention how I did it with a query, and was wondering how it would be done and if would be quicker with a record set or VBA code?

Now that you have indicated how it would be easier to avoid the problem by making two separate fields, will become the basis of change to how I set up my database. Much like storing "First name" "Last Name". Totally understand that, just do the same with images.

Scott Axton  @Reply  
        
4 years ago
Yeah - In the earlier images video Richard had to account for people that don't have lots of experience with Access.
The whole topic could become quite confusing as it is.  I figured since you were farther along you could grasp the concept.

For the future - you might want to make note of the Code Vault.
There are a lot of functions in there that Richard has put together that might have saved you some time and headaches.  Although powering through a problem is sometimes more rewarding.
Allan McConnell OP  @Reply  
     
4 years ago
Thank you Scott.

Yes certainly grasp the concept of what you are saying.

I have actually been designing databases for over 20 years, starting off with first PC when we had to use the floppy disks to load Office. Not always great databases, but functional databases all the same. The problem with me is breaking the habit of using Macros and Queries and still have a lot to learn practically.

My post was more to indicate that no matter how you go about doing something, there us always a better way. My way despite all the fuss worked for me still and also quite functional. Your suggestions and advice is more the professional way to do it and I appreciate that very much.

Thank you Scott for you support and comments. It is always good to know a better way and I have taken that onboard for my future designs where I need to keep photographs at hand.
Garry Smith  @Reply  
    
4 years ago
I use multiple TempVars to grab subfolders paths in a settings or constants tables and just store the filename in a field. The TempVars approach makes a very versatile path forward. In such cases as a products table, the product ID can be used along with the subfolder's Tempvar to combined the two for the path of the photo and a dedicated field in the table is not even needed.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 12:16:16 PM. PLT: 0s