473,804 Members | 3,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To put a hyperlink from access in body e-mail outlook

8 New Member
Hi,

I have a form with:
- e-mail adress
- subject (text)
- reference (hyperlink to a pdf document on the server)

Now I have a VBA code who allows me to open an e-mail in outlook, with the e-mail adress, the subject and in the body the hyperlink:

Expand|Select|Wrap|Line Numbers
  1. Dim mess_body As String
  2. Dim appOutLook As Outlook.Application
  3. Dim MailOutLook As Outlook.MailItem
  4. Set appOutLook = CreateObject("Outlook.Application")
  5. Set MailOutLook = appOutLook.CreateItem(olMailItem)
  6.  
  7. Set appOutLook = CreateObject("Outlook.Application")
  8. Set MailOutLook = appOutLook.CreateItem(olMailItem)
  9. With MailOutLook
  10. .BodyFormat = olFormatRichText
  11. .To = Me.emailadress
  12. .Subject = Me.subject
  13. .Body = Me.referece
  14.  
Problem: the hyperlink in the e-mail is displayed as a text format (like a hyperlink is built in access)

For Example:

2000#P:\Represe ntation\documen t2000.pdf#

What I want is that in the body of the e-mail, just the display text (here: 2000) is and that the link there still behind is (here: P:\Representati on\document2000 .pdf ) --> like it is on the access form

So that I can e-mail the link to a person (who has also access to the server) instead of sending the pdf file.

Can anyone help me? Has a tip?

Greetings and thanks,
Tonaldo
Sep 21 '10
13 15642
Tonaldo
8 New Member
Ok, thanks for the help Mariostg.

Looked into the rtf clues but didn't find a solution.

Anyone else has a suggestion to solve my problem?
Sep 23 '10 #11
Tonaldo
8 New Member
okay, got an answer

just needed to add "file://"

But thanks Mariostg again, wouldn't have found it without your help! (to split the hyperlink first)!
Sep 23 '10 #12
Mariostg
332 Contributor
Oh this is what you were looking for... :) Gee I use this all the time. You use <a href=... if you want to refer to a website. And file:// to refer to a file in a folder.
By the way, if you want to avoid problems with such links, avoid spaces when you name your files and folders.
Sep 23 '10 #13
Tonaldo
8 New Member
Yeah, thanks for the help and the tips!
Sep 23 '10 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2836
by: niv | last post by:
i have a database, one of the fields is a hyperlink to a htm file. i want to activate it automaticly as the asp file is loaded no click is needed.so that the background of the BODY part will remain and that text will be of the htm file. Both the background and the htm file are one record in the database, i tried: <BODY backgound='<%details("background")%>' HREF=<%details ("htmfile")%>'> the background field is a text field, containing...
4
5286
by: Salad | last post by:
If I create a field as a hyperlink, Access will open the hyperlink if I single click it. Is there a method within the operating system that would tell access to only open the hyperlink if double-clicked? Is there anything I can do so that Access will open a hyperlink on a double-click? I find opening a hyperlink on a single click annoying. One reason I find it annoying is that I can't single click and then right click to edit/update...
5
2882
by: c676228 | last post by:
Hi, I guess I am confused. In aspx script, I mean (you won't use Codebehind="enrollinfo.aspx.vb", but mix code with html and code together) You can access user control's property directly. Since I am useing visual studio .net, the html and code are seperated. I have the following aspx code which has two user controls: <%@ Register TagPrefix="Subway" TagName="Peopleinfo" Src="Peopleinfo.ascx" %> <%@ Register TagPrefix="Subway"...
1
2628
by: sweetpotatop | last post by:
Hello, I would like to create dynamic hyperlinks in a web page when it is first loaded by using ASP.NET. Basically there will be a list of documents in a folder and I will list them all as a hyperlink for user access. I wonder how I can go through the folder and create the dynamic hyperlink on the fly in ASP.NET.
1
1715
by: Arthur Dent | last post by:
Hello all.... i am REally confused by something... I have a hyperlink control on my page, and for the NavigateUrl property, i have it set to "~/" in the property window (without the quotes). Now, in IE this works beautifully, and the hyperlink redirects you to the root of the web application. In Firefox however it redirects you simply to the page you are currently on. If you mouse over the link, the url that comes up in the status bar is...
2
2439
by: Andy | last post by:
Hi, This is one of those things I thought should e easy... I'm programatically trying to set the navigateURL property in a hyperlink in the headertemplate of a repeater, but always get the following error "Object reference not set to an instance of an object." when referencing the hypermink in the following line.. hypAuthors.NavigateUrl = "http://www.microsoft.com"
3
1908
by: Ruth | last post by:
I need to modify my send email subroutine in VB6 to recognize hyperlinks when the user enters them in the textbox. I am using the CDO.Message object. Any suggestions? From http://www.developmentnow.com/g/38_2006_8_0_17_0/dotnet-languages-vb.htm Posted via DevelopmentNow.com Groups http://www.developmentnow.com
7
10863
by: Beefminator | last post by:
Hello, How can you create a hyperlink in the HTML body of CDOsys email? Line 7 is a link for yahoo.com, but the asp page does not work. Set objMessage = CreateObject("CDO.Message") objMessage.Subject ="Test Page - File upload" objMessage.Sender = "" & Request.Form("email1") & "" objMessage.To ="jason@yahoo.com" objMessage.HTMLBody = "Email: " & Request.Form("email1") & vbCrLf & _
1
2424
SBCUser666
by: SBCUser666 | last post by:
Form field (Text66) defined as Hyperlink. Access 2003 table field defined as Hyperlink. Using VBA I build the hyperlink and poke it into the form field. The field displays like it is a hyperlink (blue and underlined) but clicking on it does nothing. If I open the table and click on the field nothing happens. On the form, if I delete and retype just 1 character the hyperlink functions correctly (on the form and from the table). Thinking that...
0
1710
by: ntcdwrg | last post by:
I had been using a VBscript hyperlinking Access 2003 & ArcMap 9.1. Our software is updated to Access 2007 & ArcMap 9.3.1 and the hyperlink no longer works. Anyone else having this problem? Anyone have a solution? Thanks
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10562
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10303
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.