S
Sue Wilkes
Hello All,
Access 2003
I have a form linked to table (HYInReg) on the form are 3 fields (controls)
called: Hyperlink1, Hyperlink2 and Hyperlink3. Using the form the user will
highlight the field then select the Hyperlink Icon (World&Chain) then enter a
hyperlink to a document stored on the data server. The database is a
document control system, the procedure is then to inform the necessary
personnel using email of the document (could be any format ie .doc, .xls,
..pdf etc.) by inserting the hyperlink(s) into the email. Is there any way in
which I can do this from the access form. I have created an email button
which will open outlook and enter the send to and subject details however I
am at a loss on how to insert the hyperlink either as an attachment or in the
main body. Any help would be gratefully appreciated. Below is the code I
am using for the email button
Private Sub EMAIL_Click()
On Error GoTo Err_EMAIL_Click
Dim stAppName As String
Dim SendTo As String, MySubject As String, MyMessage As String
stAppName = "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
Call Shell(stAppName, 1)
SendTo = "(e-mail address removed)"
MySubject = "HYPERLINK FROM HY01 DOCUMENT REGISTER"
DoCmd.SendObject acSendNoObject, , , SendTo, , , MySubject, MyMessage
Err_EMAIL_Click:
If Err <> 2501 Then ' Ignore the error
MsgBox "Error: " & Err & " " & Error
End Sub
(FYI - The Is Hyperlink property is set to No on the form control but in the
table the data property is set to Hyperlink)
Access 2003
I have a form linked to table (HYInReg) on the form are 3 fields (controls)
called: Hyperlink1, Hyperlink2 and Hyperlink3. Using the form the user will
highlight the field then select the Hyperlink Icon (World&Chain) then enter a
hyperlink to a document stored on the data server. The database is a
document control system, the procedure is then to inform the necessary
personnel using email of the document (could be any format ie .doc, .xls,
..pdf etc.) by inserting the hyperlink(s) into the email. Is there any way in
which I can do this from the access form. I have created an email button
which will open outlook and enter the send to and subject details however I
am at a loss on how to insert the hyperlink either as an attachment or in the
main body. Any help would be gratefully appreciated. Below is the code I
am using for the email button
Private Sub EMAIL_Click()
On Error GoTo Err_EMAIL_Click
Dim stAppName As String
Dim SendTo As String, MySubject As String, MyMessage As String
stAppName = "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
Call Shell(stAppName, 1)
SendTo = "(e-mail address removed)"
MySubject = "HYPERLINK FROM HY01 DOCUMENT REGISTER"
DoCmd.SendObject acSendNoObject, , , SendTo, , , MySubject, MyMessage
Err_EMAIL_Click:
If Err <> 2501 Then ' Ignore the error
MsgBox "Error: " & Err & " " & Error
End Sub
(FYI - The Is Hyperlink property is set to No on the form control but in the
table the data property is set to Hyperlink)