e-mail subject line

M

Mick

I have had a request to include the results from three
fields on a form into the subject line of an e-mail that
is created from the form. Any ideas? I can get on field to
populate but when i try and write a line of code to
include all three fields I get a blank subject line.

Thanks
Mick
 
A

Al Camp

Mick,
Given the SendObject syntax....
DoCmd.SendObject [objecttype][, objectname][, outputformat][, to][, cc][,
bcc][, subject][, messagetext][, editmessage][, templatefile]
You can use concatenation to place the value of 3 fields in the SUBJECT
argument of the SendObject function.
ex.
[Myfield1] & " " & [Myfield2] & " " & [MyField3]
in the Send Object Subject should place the value of all three fields
(seperated by spaces) in the email subject.
 

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

Top