Tootle: In the OnClick event put:
Me![cmdButton].HyperlinkAddress = Forms![frmEditPhotos]![Path]
..notice that you can create your path string and substitute it in, e.g.,
Dim strNo As String
strNo = "C:\MyPics\01\" & Forms![frmMyForm]![No]
Me![cmdButton].HyperlinkAddress = "P43" & strNo & ".jpg"
...etc, etc. Note too Tootle that when you're working with "Paths" it is a good idea to always reference your database so that the client doesn't have to line up with, e.g.,
C:\Myfolder1\Myfolder2\Myimages\....
Say your database is in Myfolder2, then do the following:
Dim strPath As String
strPath = CurrentProject.Path
Now "strPath" is equal to "C:\Myfolder1\Myfolder2\"
...and the user can move the database to a new location and all is well. strPath will change right along with it; always reflecting where the "mdb" file is. Then in your code, you only provide the remaining part of the path, e.g.,
strNo = "C:\MyFolder1\MyFolders2\" & Forms![frmMyForm]![No]& ".jpg"
becomes
strNo = strPath & Forms![frmMyForm]![No] & ".jpg"
...hope this helps.