I'm using Access 2003 and Outlook 2003. I have the following code:



Private Sub LinkButton_Click()
Dim linkstring As String
Dim OutApp As Object
Dim OutMail As Object

linkstring = "<a href=""k:\Process Database\Process Database.mdb /cmd " & FindNumberBox.Value & """> Link to Job# " & JobNumberBox.Value & "</a>"

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon

Set OutMail = OutApp.CreateItem(0)

On Error Resume Next
With OutMail
.Subject = "Link to Process for Job# " & JobNumberBox.Value
.HTMLBody = linkstring
.Display
End With
On Error GoTo 0

Set OutMail = Nothing
End Sub

I want a button on a form that will allow the user to email someone a link that will open this record on another form. It works fine except when the link is generated /cmd gets changed to \cmd and the link doesn't work. Any ideas?