Configuring the subject line

B

Bec

I want to set the subject line as a combo box, allowing me to add a tex
description, and two values from within the form, e.g.

Subject: Message description [customer name] [ reference number]

I've got the subject line as a combo box to allow the text and tw
values.

Is it possible to do this ?

This is the first form I've worked on so I'm unsure of what is possibl
and what isn't.

Thank
 
S

Sue Mosher [MVP-Outlook]

Leave the implementation details aside for a moment and let's see if I
understand: You want to create the subject from some text that the user
would enter, appending data from Customer Name and Reference Number fields?
Is that right? If not, explain further. If so, that leads to some other
questions:

Are Customer Name and Reference Number the exact names of custom fields
defined on the form?

How do you envision the user entering the description that will vary for
each item?
 
B

Bec

I do want to create the subject line using text I specify e.g. form nam
with the Customer Name and Reference Number fields appendin
afterwards.

The Customer Name and Reference Number fields are defined in the form.
I can get it to update a field on the form with this information an
the text I have specified ( form title ), I just can't get thi
information into the subject line of the email it then creates.

The customer name and refernece number fields are filled out by th
user along with the rest of the form when created.

I hope the above made sense.....

thanks
Leave the implementation details aside for a moment and let's se
if I
understand: You want to create the subject from some text that th
user
would enter, appending data from Customer Name and Reference Numbe
fields?
Is that right? If not, explain further. If so, that leads to som
other
questions:

Are Customer Name and Reference Number the exact names of custo
fields
defined on the form?

How do you envision the user entering the description that will var
for
each item?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.asp
 
B

Bec

I do want to create the subject line using text I specify e.g. form nam
with the Customer Name and Reference Number fields appendin
afterwards.

The Customer Name and Reference Number fields are defined in the form.
I can get it to update a field on the form with this information an
the text I have specified ( form title ), I just can't get thi
information into the subject line of the email it then creates.

The customer name and refernece number fields are filled out by th
user along with the rest of the form when created.

I hope the above made sense.....

thanks
Leave the implementation details aside for a moment and let's se
if I
understand: You want to create the subject from some text that th
user
would enter, appending data from Customer Name and Reference Numbe
fields?
Is that right? If not, explain further. If so, that leads to som
other
questions:

Are Customer Name and Reference Number the exact names of custo
fields
defined on the form?

How do you envision the user entering the description that will var
for
each item?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.asp
 
S

Sue Mosher [MVP-Outlook]

How are you creating the email message? If objMail is your message, then
this statement would set the subject using data in the current item where
your custom fields are defined and the code is running:

objMail.Subject = "Form Name " & _
Item.UserProperties("Customer Name") & " " _
& Item.UserProperties("Reference Number")

See http://www.slipstick.com/dev/propsyntax.htm for more informaiton on
custom property syntax.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers




Bec said:
I do want to create the subject line using text I specify e.g. form name
with the Customer Name and Reference Number fields appending
afterwards.

The Customer Name and Reference Number fields are defined in the form.
I can get it to update a field on the form with this information and
the text I have specified ( form title ), I just can't get this
information into the subject line of the email it then creates.

The customer name and refernece number fields are filled out by the
user along with the rest of the form when created.

I hope the above made sense.....

thanks
Leave the implementation details aside for a moment and let's see
if I
understand: You want to create the subject from some text that the
user
would enter, appending data from Customer Name and Reference Number
fields?
Is that right? If not, explain further. If so, that leads to some
other
questions:

Are Customer Name and Reference Number the exact names of custom
fields
defined on the form?

How do you envision the user entering the description that will vary
for
each item?
 
B

Bec

I've worked out what I was doing wrong.... this is the line I used t
get the data I needed into the Subject line :

"Goods Request Form " & [Customer Name] & Space( 1 ) & [XKO Cal
Reference]

with the field as subject.

thank
 

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