form action properties

G

Guest

My OL custom form has a bit of code which fires when the item is first opened
i.e. Item.Size = 0

But when I send this form to someone else and they open it for some reason
it acts as if the Item Size is still 0. I have set the Forward action to
create this form, so that some of the code still works when it has been sent
on a few times. This obviously creates a new copy of the form, but some
field data is still there.

For instance, when Item Size is 0 it puts in the current user's name. This
name needs to stay the same no matter how many times the form is forwarded
on. But because it is set to open the same form when forwarded it sets the
recipients name as the current name which I dont want to happen. Is there
any way around this? It looks as if I may lose a lot of the automation I've
created for the form, having set it this way just so some other code can
still run (print command button sends to Word template).

Thanks
 
S

Sue Mosher [MVP-Outlook]

A forward item is a new item. Item.Size = 0 but Item.Subject <> "".

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Do you know if Reply will increase the Item.Size? I dont think my code will
work validating it against any other field (that I know of).

It worked perfectly fine, kept all of the field values how I wanted it, but
when I changed the form forward action it messed it up.
 
S

Sue Mosher [MVP-Outlook]

Same thing: A reply is a new message. Item.Size = 0. What distinguishes a reply is that it has at least one recipient.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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