The following function can be called as follows:
strFilename = FindPicture().
It opens a dialog box which lets you select a specific file and returns the Absolute path of the file, which you can then put into your table aa a pointer.
I've left a lot of options in there as comments to demonstrate how this function can be modified or adapted for other purposes.
-------------------------------------
Public Function FindPicture() As String
With Application.FileDialog(msoFileDialogFilePicker) 'Grab copy of the Office file dialog (pick files)
'With Application.FileDialog(msoFileDialogFolderPicker) 'Grab copy of the Office file dialog (pick folders)
.AllowMultiSelect = False 'Select only one file
.Title = "Locate picture file" 'Set dialog title
.ButtonName = "Choose" 'Set the button caption
'.Filters.Clear 'Make sure the filter list is clear
'Add 2 filters
'.Filters.Add "JPEGs", "*.jpg"
'.Filters.Add "Bitmaps", "*.bmp"
'.FilterIndex = 2 ' Set the filter index to 2
'.Filters.Add "All", "*.*"
'Set initial path
.InitialFileName = "C:\Documents and Settings\" 'Initial file search location
'Show files as thumbnails
'.InitialView = msoFileDialogViewThumbnail
.InitialView = msoFileDialogViewList
'Show the dialog and test the return
If .Show = 0 Then
'didn't pick a file - exit sub
Exit Function
End If
'Should be only one file name - grab it
FindPicture = Trim(.SelectedItems(1)) 'Full path of picture
'On Error Resume Next 'Set error trap
End With
End Function