Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / September 2006

Tip: Looking for answers? Try searching our database.

form action properties

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wayne - 28 Sep 2006 00:34 GMT
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
Sue Mosher [MVP-Outlook] - 28 Sep 2006 02:04 GMT
A forward item is a new item. Item.Size = 0 but Item.Subject <> "".

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> My OL custom form has a bit of code which fires when the item is first opened
> i.e. Item.Size = 0
[quoted text clipped - 14 lines]
>
> Thanks
Wayne - 28 Sep 2006 04:25 GMT
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.  

> A forward item is a new item. Item.Size = 0 but Item.Subject <> "".
>
[quoted text clipped - 16 lines]
> >
> > Thanks
Sue Mosher [MVP-Outlook] - 28 Sep 2006 12:32 GMT
Same thing: A reply is a new message. Item.Size = 0. What distinguishes a reply is that it has at least one recipient.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> 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).
[quoted text clipped - 3 lines]
>
>> A forward item is a new item. Item.Size = 0 but Item.Subject <> "".

>>    
>> > My OL custom form has a bit of code which fires when the item is first opened
[quoted text clipped - 15 lines]
>> >
>> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.