I am trying to get a hyperlink in an email in VBA using the SendObject command. I would like to use a variable as the hyperlink in the body of the message that will change each time it is run. The hyperlink type is toward a network folder that will change depending upon the data. I've tried adding "#" to the beginning and end of the string but that didn't work. I've also played around with the "<a href", but I'm not sure if that is right or if I am not including "......" quotes to the whole data element. I've also tried using the hyperlink data type and that created an error (the other techniques have just entered the string without the hyper portion)
Any help would be appreciated,
Thank you
Charles
Dim txtMonth as string
Dim strTemp2 as string
strTemp2 = O:\reports\November\Data
DoCmd.SendObject , , , "Sam Smith", , , "CAP Data Cleanup: " & txtMonth, "Please open your Excel Spreadsheet to review records and fix in Service Point" & vbCrLf & vbCrLf & strTemp2 & vbCrLf & strTempALL, False
Any help would be appreciated,
Thank you
Charles
Dim txtMonth as string
Dim strTemp2 as string
strTemp2 = O:\reports\November\Data
DoCmd.SendObject , , , "Sam Smith", , , "CAP Data Cleanup: " & txtMonth, "Please open your Excel Spreadsheet to review records and fix in Service Point" & vbCrLf & vbCrLf & strTemp2 & vbCrLf & strTempALL, False