Is there a way of formulating a link criteria on opening
a form whereby the link on the form is a file on disk
which has the same ID minus the .jpg.
So instead of this
the Me![txtProductID] will be the jpg file on disk minus the extension
of course
If the ProductID is not = JpgID then the form doesn't open.
I need somehow to test for the existence of the file itself.
Do hope I have been clear enough
Look forward to some suggestions
a form whereby the link on the form is a file on disk
which has the same ID minus the .jpg.
So instead of this
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmImage"
stLinkCriteria = "[ProductID]=" & "'" & Me![txtProductID] & "'"
DoCmd.OpenForm stDocName
the Me![txtProductID] will be the jpg file on disk minus the extension
of course
If the ProductID is not = JpgID then the form doesn't open.
I need somehow to test for the existence of the file itself.
Do hope I have been clear enough
Look forward to some suggestions