473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

DoCmd.SendObject acSendNoObject Inserting Hyperlink in message containing a space.

Rob
I am trying to send an e-mail by clicking a command button using
DoCmd.SendObject acSendNoObject. I would like to insert a hyperlink in
the message of the email, but the problem is the file path contains a
space ex. "\\fnp\ui ts\aug2005". When I try to inset the hyperlink,
"\\fnp\ui" is all it recognizes as the path and the rest of the path is
treated as regular text. Any help would be appreciated.

Nov 13 '05 #1
1 8839
Hi Rob, I was having the same problem. I played around with a little bit and did a text replacement of space with %20, this took care of the problem.

Here is the event procedure I was using to send the email with a link
Private Sub lblSendNotification_Click()
Dim sMessage As String
Dim sSubject As String
Dim sLink As String
Dim sTo As String
Dim sCC As String
Dim sNotes As String
Dim sFirmName

sTo = IIf(IsNull(Me.txtNotificationsToField), "", Me.txtNotificationsToField)
sCC = IIf(IsNull(Me.txtNotificationsCCField), "", Me.txtNotificationsCCField)
sNotes = IIf(IsNull(Me.txtFirmLinkedFileNotes), "", Me.txtFirmLinkedFileNotes)

sFirmName = Me.cboFirmID.Column(1)

sLink = "file:///" & Me.txtFilePath
sLink = Replace(sLink, " ", "%20")

sMessage = "A file was recently saved to the Database for " & sFirmName & ". Please see details below."
sMessage = sMessage & Chr(13) & Chr(13) & _
sNotes & Chr(13) & _
sLink

sSubject = "New file added to Database for " & sFirmName

DoCmd.SendObject , , acFormatHTML, sTo, sCC, , sSubject, sMessage, True

Me.txtNotficationsSentDate = Now

End Sub
Dec 30 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jay Bienvenu | last post by:
I am trying to execute a DoCmd.SendObject command to produce an email message from Access 2000. The command produces the email message, but the To:, CC: and BCC: fields are blank. The subject field...
1
by: Alfred | last post by:
Hi I am using access 2002 1.0 I want to email a word or html file using the docmd.sendobject The document must be send as a attachment. 2.0 Second I would like to tell the Docmd.Sendobject to...
3
by: Baz'noid | last post by:
Hi all, With the recent postal strikes here in the UK i'm trying to persuade access to email reports at the touch of a button. I've not been able to figure out how to filter the report - when i...
3
by: Lauren Quantrell | last post by:
I get the prompt from Outlook Express when trying to send an e-mail using DoCmd.SendObject in MS Access2000: "A program is attempting to send the following e-mail message on your behalf:" To:...
4
by: Richard Cleaveland | last post by:
We have an Access 97 application which uses the DoCmd.SendObject method to send emails when a command button is activated. Our standard email client is Eudora. On all but one machine we have no...
1
by: jerry.ranch | last post by:
I collect information from my clients with an xls file I import the xls data into my access table. I don't have them put info directly into Access, because, despite the drop downs I have for...
0
by: jacksonmacd | last post by:
Trying to send email from Access 97. It used to work properly on this computer, but something has changed and it now returns Error 2287 from this code snippet: Sub test() DoCmd.SendObject...
1
by: bgreer5050 | last post by:
I am using Access 2000 and need a little help writing the code the proper way to do the following: I have a form with the following fields: "Requestor" and "RequestorEmailAddress" I have a...
2
iBasho
by: iBasho | last post by:
Hi, I am trying to set up a notification email that would come to my email everytime users click on a command button in a form. I am using the DoCmd.SendObject command without actually sending any...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.