A family of Microsoft relational database management systems designed for ease of use.
An image cannot be in both folders.
there is nothing else in the record that would indicate which folder contains the image.
There is no reason for a file name to be in a record if the image is not in either folder.
As the file can only be in one of two folders it is easy to return the correct full path with an expression like that below, illustrated here in the immediate window on my system:
FileName = TestBed.accdb
? IIf(Dir("C:\Users\kenws\Documents\Databases\TestBed" & FileName)<>"","C:\Users\kenws\Documents\Databases\TestBed" & FileName,"C:\Users\kenws\Documents\Databases\SomeOtherFolder" & FileName)
Which correctly returns:
C:\Users\kenws\Documents\Databases\TestBed\Testbed.accdb
Whereas with:
FileName = "SomeOtherFile.accdb"
The same expression correctly returns:
C:\Users\kenws\Documents\Databases\SomeOtherFolder\SomeOtherFile.accdb
The expression should only be called If Not IsNull(FileName) of course to allow for records with no FileName value.