Results 1 to 2 of 2
  1. #1
    Lockrin is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Posts
    52

    How to email a hyperlink using VBA

    Hello, I have a button on a form that sends an e-mail out. In the "Message Text" section I need to add a hyperlink. I can add the text but it doesn't know to actually make it a hyperlink. Here is what I have:



    Dim stMsg As String
    Dim Hyp As Hyperlink

    Hyp = "http://atf-appserver03/atftoday/opx/Shared%20Documents/Scoreboards/Scoreboard%20-%20Beam%20Fabrication%20(Count).xlsx"



    If Me.Hyperlink.Value = "-1" Then
    stMsg = "See attached file and Link Below " & Chr$(13) & _
    Chr$(13) & Chr$(13) & _
    Hyp
    Else
    stMsg = "See attached file"
    End If

    DoCmd.SendObject acSendReport, "rptBeamCount", acFormatPDF, "Jason Yoho; Jim Gilbride; John Toth; Ryan Lochner", , , _
    "NGNN Status Update", stMsg



    Thanks in advance

  2. #2
    Lockrin is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Posts
    52
    I realized later that even though it does not show up as a hyperlink, once it has been sent it will change to a hyperlink. I found this out after I gave up............ Thank God its friday.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Where is the hyperlink....
    By amer in forum Queries
    Replies: 1
    Last Post: 06-09-2010, 12:06 PM
  2. Hyperlink Help
    By smikkelsen in forum Access
    Replies: 9
    Last Post: 03-12-2010, 11:28 AM
  3. have hyperlink use own name/text
    By airhud86 in forum Access
    Replies: 1
    Last Post: 12-16-2009, 09:35 AM
  4. Hyperlink problem
    By peterl in forum Programming
    Replies: 0
    Last Post: 01-13-2009, 07:21 AM
  5. help with dynamic hyperlink to pdf
    By iresolver in forum Access
    Replies: 0
    Last Post: 12-24-2008, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums