M
Matt
Hello,
I have created a button on a form to create a folder relating to the specfic
record which works fine. What I want to do is use some code to store the
address of the folder in the hyperlink field. However I am not having much
success. Heres the code
Dim MyFolder, MyPath, MyHyper
MyFolder = Me![txtRef] & "_" & Me![txtCustomerName]
MyPath = "\\Server\\LossFiles"
MkDir MyPath & "\" & MyFolder
"It works to here creating the folder"
MyHyper = MyPath & "\" & MyFolder
Me.hypField = HyperlinkPart(MyFolder, acDisplayText)
Me.hypField = HyperlinkPart(MyHyper, acAddress)
Thanks in advance
Matt
I have created a button on a form to create a folder relating to the specfic
record which works fine. What I want to do is use some code to store the
address of the folder in the hyperlink field. However I am not having much
success. Heres the code
Dim MyFolder, MyPath, MyHyper
MyFolder = Me![txtRef] & "_" & Me![txtCustomerName]
MyPath = "\\Server\\LossFiles"
MkDir MyPath & "\" & MyFolder
"It works to here creating the folder"
MyHyper = MyPath & "\" & MyFolder
Me.hypField = HyperlinkPart(MyFolder, acDisplayText)
Me.hypField = HyperlinkPart(MyHyper, acAddress)
Thanks in advance
Matt