changing value of CC field when item.size is > 0

W

Wayne

Im having trouble populating the CC field with one of my forms.

I had originally set the initial value of the form to a user, but they now
only want to be copied on the form after the form has been filled out and
sent, i.e. when the recipient receives it and then clicks forward I want the
CC to be populated with a user name.

I have tried this:

If Item.Size > 0 Then
Item.CC = "username"
End If

but the result is that the recipient sees the user name in the CC field on
the Read Page, but when they click Forward the CC field is obviously empty.
I then tried increasing the item size in the code to 1, 2 etc but that didn't
work either.

Anyone have a solution? Im thinking an alternative would be to set the
visibility to false when item size = 0 but I dont really want to do that in
case someone actually wants to use the CC field in the original message
 
H

Hollis D. Paul

I have tried this:

If Item.Size > 0 Then
Item.CC = "username"
End If
Try adding Item.Save 0 after setting Item.CC. Be sure and look up the
syntax for Item.Save, I'm not really sure that 0 is the save changes
parameter.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Mukilteo, WA USA
 

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