I posted an email related query but no joy so far and you seem to be good
so
maybe you could help me.
I have a macro that generates an email to be sent to me so that when a
user
submitts a form, I have embedded it in the submit button. When I test it
on
my PC it works fine but when I use a differnt PC I get an error message
and
if any of my colleagues tries it they get the ame error message thei is
the
macro
Line1: Action - OnError ,Argument - Next,
Line2: Action - SendObject, Argument: , , , (e-mail address removed), , ,
=[Fname] & " " & [Sname], =[Accesstxt] & " " & [Fname], No,
Line3: Conditin - [MacroError].[Number]<>0, Action - MsBox, Argument -
=[MacroError].[Description], Yes, None,
Where have I gone wrong
Thanks in advance
:
Yes, add False in the End of the line, which mean you don't want to edit,
if
no value selected it assume that its True, and this is why it opens the
message, for you to edit it
Docmd.SendObject acSendNoObject,,,SendTo,,,MySubject,MyMessage, False
--
Please respond to the group if your question been answered or not, so
other
can refer to it.
Thank you and Good luck
:
Which method did you use to send emails
One method
Dim SendTo As String ,MySubject As String, MyMessage As String
SendTo="(e-mail address removed)"
MySubject = "Title"
MyMessage = Me.Field1Name & " " & Me.Field2Name
Docmd.SendObject acSendNoObject,,,SendTo,,,MySubject,MyMessage
--
Please respond to the group if your question been answered or not, so
other
can refer to it.
Thank you and Good luck
:
Hello all,
I have researched in the forum and successfully created a command
button to
open outlook, populate the send to field, and the subject line. I
want to
take a string built from selections on the form, and insert into the
body/message of the email.
How can I insert a message?
Thank you!
Renee