M
Matt
Hi
I have some code that is a attached to a button on a form which creates a
folder in a directory and then writes the location as a hyperlink to field.
Which works very well. See code below. What I want to know is how can I
change \\server1 to a value held in a field eg to field sgbPath held in a
table call tblSysGlobals. The idea is if i change to location of the folders
to a another server eg server2 I would only need to change the value held in
the sgbPath field which would then point the hyperlink fields to the new
server. Hope that makes sense
Thanks
Matt
Dim myFolder, myPath
Dim myHyperPath, myHyper1, myHyper2
myFolder = Me![JobNumber] & "_" & Me![CustomerName]
myPath = "\\server1\Files"
MkDir myPath & "\" & myFolder
myHyper1 = HyperlinkPart(myFolder, acDisplayText)
myHyper2 = HyperlinkPart(myPath & "\" & myFolder, acDisplayText)
Me.wpPath = myHyper1 & "#" & myHyper2
I have some code that is a attached to a button on a form which creates a
folder in a directory and then writes the location as a hyperlink to field.
Which works very well. See code below. What I want to know is how can I
change \\server1 to a value held in a field eg to field sgbPath held in a
table call tblSysGlobals. The idea is if i change to location of the folders
to a another server eg server2 I would only need to change the value held in
the sgbPath field which would then point the hyperlink fields to the new
server. Hope that makes sense
Thanks
Matt
Dim myFolder, myPath
Dim myHyperPath, myHyper1, myHyper2
myFolder = Me![JobNumber] & "_" & Me![CustomerName]
myPath = "\\server1\Files"
MkDir myPath & "\" & myFolder
myHyper1 = HyperlinkPart(myFolder, acDisplayText)
myHyper2 = HyperlinkPart(myPath & "\" & myFolder, acDisplayText)
Me.wpPath = myHyper1 & "#" & myHyper2