Photo Library (1 Viewer)

davidcutts

New member
Local time
Today, 11:24
Joined
May 2, 2019
Messages
2
I have a photo (.jpg) library on USB drive I intend to use Access as librarian, with the Access database also on the drive (possibly with runtime as well). I have got the basics working on the C: drive but can anyone give me some clues as how to I might change it to work on the USB drive, thanks.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 11:24
Joined
Oct 29, 2018
Messages
21,473
I have a photo (.jpg) library on USB drive I intend to use Access as librarian, with the Access database also on the drive (possibly with runtime as well). I have got the basics working on the C: drive but can anyone give me some clues as how to I might change it to work on the USB drive, thanks.
Hi. You could use:
Code:
CurrentProject.Path
to get the current path of the Access file. You should then be able to parse the drive letter from it.
 
Last edited:

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 13:24
Joined
Feb 28, 2001
Messages
27,182
Just remember that you don't ever want to import the pictures to embed them in the DB. What you REALLY want is to have them in a folder where you can find them and load the file specs to an image control. Even the best JPEG can get big and if you have BMP, those get outrageously huge quickly.
 

Cronk

Registered User.
Local time
Tomorrow, 04:24
Joined
Jul 4, 2013
Messages
2,772
I did a development for a client, maybe 10 years ago where the requirement was to maintain a library of photos with each given various attributes. It was for a wildlife rangers. They wanted to be able to search for photos by location, species/sub species etc and store other information about the source (photographer), quality, copyright.

The photos were stored on a network server in a folder/subfolder structure with the root folder path stored in the database. The relative path of each photo was stored in the database holding all the tables which also resided on the server with the front end Access database residing on users' PCs.

The import functionality prompted the user to nominate the source of the photos to be cataloged (USB or network), displayed batches of photos for selection/rejection (mostly there were multiple photos of the same thing), copied the photo to the photo storage area, selecting multiple attributes for the photo, then storing those and the photo name and path.

Hope that gives you something useful in your endeavours. BTW, I would never consider having a USB as the main repository of data, only a means of transporting data, if that was what was being suggested.
 

Micron

AWF VIP
Local time
Today, 14:24
Joined
Oct 20, 2018
Messages
3,478
how to I might change it to work on the USB drive
Someone proficient in Access once told me that they blamed working on a USB drive as the reason for db corruption so I'd never do that. Don't know what exactly would cause it, but I don't see a reason to prove them right. Seems to me there was a lengthy treatise in some forum where it was explained why these and cloud based services shouldn't be used but I can't recall where.
 

isladogs

MVP / VIP
Local time
Today, 19:24
Joined
Jan 14, 2017
Messages
18,219
Just to support the comments in the last two posts.
It is a very bad idea to use USB drives (or cloud based services or wifi) as if there is even a brief interruption in connection whilst writing/editing data, you will almost certainly get corruption.
In short, don't use any of those methods
 

Bullschmidt

Freelance DB Developer
Local time
Today, 13:24
Joined
May 9, 2019
Messages
40
And along the same lines how about this:
Keep the Access database on the C:\ drive and store all the filenames (but not the full file paths) in the database. And also have a table called something like Locations with data such as C:\MyFolder\MySubFolder and E:\MyFolder and thus be able to set which location you want to use at any particular time...
 
Last edited:

Users who are viewing this thread

Top Bottom