A family of Microsoft relational database management systems designed for ease of use.
You might like to take a look at Images.zip in my public databases folder at:
https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
If you have trouble downloading a specific file, clicking on the 'Download' button at the top of the page while no files are selected should download a zip file of all files in the folder, from which you should then be able to unpack the relevant file.
In the zip archive the basic Images.accdb file allows images to be associated with each main record and stores each in a text column as the full path to the image in an Images table. An Addresses_Images table models the many-to-many relationship type between the main Addresses table and the Images table.
The main data entry form includes an unbound combo box of all image titles (which default to the file name if not amended by the user at the time of input). This filters the form as follows:
Private Sub cboFindImage_AfterUpdate()
If Me.cboFindImage = "<All Images>" Then
Me.FilterOn = False
Else
Me.Filter = "EXISTS (SELECT * FROM Addresses_Images INNER JOIN Images " & _
"ON Addresses_Images.ImageID = Images.ImageID " & _
"WHERE Addresses_Images.AddressID = Addresses.AddressID AND ImageTitle = """ & Me.cboFindImage & """)"
Me.FilterOn = True
End If
End Sub
The combo box's RowSource property is the following UNION operation, which adds an <All Images> row at the start of the list:
SELECT "<All Images>"AS ImageTitle, 0 AS SortColumn
FROM Images
UNION
SELECT ImageTitle, 1
FROM Images
ORDER BY SortColumn, ImageTitle;
The images for each address are displayed in small controls in a continuous subform, which also includes a command button in its detail section to open the currently selected image in its associated application with:
Private Sub cmdOpenImage_Click()
Application.FollowHyperlink Me.ImagePath
End Sub