Getting hyperlink field to work

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 and hyperlink field to
point to this folder, however I am not having much success. Heres the code

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Hyperlinks 3
hyperlink fields 1
Hyperlinks 0
Making a path to a folder 1
Moving Folders 1
Hyperlinks 0
Checking if a word doc exists 4
Strip Path Info From Field Data 5

Top