Senniger1
asked on
Email Hyperlink from Access to Outlook
In Access 2010 I have a form with a command button which creates an Outlook email. When you click the button it opens up the email in Outlook and in the body I need a link back to the database.
I cannot get the link to work. Here is the code I've tried to use.
StrBody = StrBody & "<A href='file://S:/Users/jal. doc'><U>Cl ick Here</U></A>"
Also, just out of curiosity, is there a way to send an email from Access to Outlook which has a link to a specific form?
Can anyone help me with this?
Thanks in advance!
I cannot get the link to work. Here is the code I've tried to use.
StrBody = StrBody & "<A href='file://S:/Users/jal.
Also, just out of curiosity, is there a way to send an email from Access to Outlook which has a link to a specific form?
Can anyone help me with this?
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, for the above code to work you need to make sure that your Outlook options allow HTML emails. (It wouldn't work at my location, because all of our emails are plain text)
<<
Also, just out of curiosity, is there a way to send an email from Access to Outlook which has a link to a specific form?
>>
No... but you can send a link to a database which has an autoExec Macro or startup form which takes the user to that specific form. The link will open the database, and the startup macro or code will take the user to the form (I can't think of anyway to get the user to a specific record on that form, though).
Also, just out of curiosity, is there a way to send an email from Access to Outlook which has a link to a specific form?
>>
No... but you can send a link to a database which has an autoExec Macro or startup form which takes the user to that specific form. The link will open the database, and the startup macro or code will take the user to the form (I can't think of anyway to get the user to a specific record on that form, though).
ASKER
Perfect. Thank you!