So you're trying to open an external file by building a string that will tell you the path/name of the file? or are you trying to display the contents of the file within your access application?
so let's say this is the file you want to open
h:\invoices\Instruction100000.pdf
so to open that file I'd do this in the ON CLICK (button would work fine)
Code:
Dim wshshell
Set wshshell = CreateObject("WScript.Shell")
wshshell.Run """h:\invoices\instruction100000.pdf"""
Set wshshell = Nothing
You just have to substitute in your file name on the fly for instance
Code:
Dim wshshell
Dim sFile As String
sFile = [FieldWithPath] & [FieldWithPaymentInstructionName] & ".pdf"
Set wshshell = CreateObject("WScript.Shell")
wshshell.Run "" & sFile & ""
Set wshshell = Nothing