Email text from field in form?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using my employee database to track messages I pass along. I have a
Messages form that successfully creates a message for the person I have
looked up in another form.

I want to enter the message in the form I have created (becomes a record in
my "Messages" table), and when using SendObject to create the email, I would
like the "Message" field to automatically become the text in the MS Outlook
message.

TIA!
 
By looking up the SendObject method in the help file you get

SendObject(ObjectType, ObjectName, OutputFormat, To, Cc, Bcc, Subject,
MessageText, EditMessage, TemplateFile)

Therefore you simply need to assign the message control as the 8th input
variable. Something like,

Docmd.SendObject , , , "(e-mail address removed)", , , "Your Subject Goes
Here", Me.Message, ,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top