Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Outlook 2003 - Close parent form before opening child form (http://www.outlookbanter.com/outlook-using-forms/101749-outlook-2003-close-parent-form.html)

Randy[_4_] April 10th 10 05:01 PM

Outlook 2003 - Close parent form before opening child form
 
Greetings,

Hope somebody in this group can help me with a (hopefully) simple
problem with Oulook 2003 forms.

How can I programatically close a parent form before it opens a child
form?

Any assitance will be much appreciated. Txs much in advance!!

Randy

Sue Mosher [MVP][_4_] April 11th 10 03:41 AM

Outlook 2003 - Close parent form before opening child form
 
Tell us more about what "before it opens a child form" in your scenario.
Exactly how is one form causing another item to open?
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54



"Randy" wrote:

Greetings,

Hope somebody in this group can help me with a (hopefully) simple
problem with Oulook 2003 forms.

How can I programatically close a parent form before it opens a child
form?

Any assitance will be much appreciated. Txs much in advance!!

Randy
.


Randy[_4_] April 11th 10 10:06 PM

Outlook 2003 - Close parent form before opening child form
 
Hi Sue, and txs for your reply.

The form is a very simple one, and has just two fields: COMMENTS and
HISTORY (both multiline text fields).

Here“s an example of the way the form will work:

User A opens the form (Tools/Form/Choose Form), types in a few
comments in the COMMENTS texbox, then sends the form to user B.

Before the form is sent:

1.- the current date and time are added to the user“s comments
2.- the contents of the COMMENTS field are added to the HISTORY field
3.- the COMMENTS field is cleared.

User B opens the form from his/her Inbox, clicks on Reply, types his/
her comments in the COMMENTS field and sends the form to user C.
Before the form is sent, date and time are added to user“s
comments.... and so on.

The forms that arrive in the users“ Inboxes are what I call "parent"
forms. Users open the parent forms and then click on Reply, launching
what I call a "child" form - the one they will use to type in their
comments.

Obviously, when the child form is launched, the parent form remains in
the background. Once an user sends out the child form, he will still
have to close the parent one.

Hope that this information will clarify what I am trying to do. Txs a
lot again for your reply!

Best,

R.

Sue Mosher [MVP][_4_] April 12th 10 09:47 PM

Outlook 2003 - Close parent form before opening child form
 
First, a terminology clarification: What are sent are items or messages, not
forms. The form is only the UI/code template.

Since the user if creating a new item by replying, you can put code in the
Reply event handler to close the parent item, e.g.:

Function Item_Reply()
Const olDiscard = 1
Item.Close olDiscard
End Function

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54



"Randy" wrote:

Hi Sue, and txs for your reply.

The form is a very simple one, and has just two fields: COMMENTS and
HISTORY (both multiline text fields).

Here“s an example of the way the form will work:

User A opens the form (Tools/Form/Choose Form), types in a few
comments in the COMMENTS texbox, then sends the form to user B.

Before the form is sent:

1.- the current date and time are added to the user“s comments
2.- the contents of the COMMENTS field are added to the HISTORY field
3.- the COMMENTS field is cleared.

User B opens the form from his/her Inbox, clicks on Reply, types his/
her comments in the COMMENTS field and sends the form to user C.
Before the form is sent, date and time are added to user“s
comments.... and so on.

The forms that arrive in the users“ Inboxes are what I call "parent"
forms. Users open the parent forms and then click on Reply, launching
what I call a "child" form - the one they will use to type in their
comments.

Obviously, when the child form is launched, the parent form remains in
the background. Once an user sends out the child form, he will still
have to close the parent one.

Hope that this information will clarify what I am trying to do. Txs a
lot again for your reply!

Best,

R.
.


Randy[_4_] April 26th 10 11:07 PM

Outlook 2003 - Close parent form before opening child form
 
Sue,

Txs much for your reply. It worked!

I am, however, facing another problem now. A copy of every outgoing
item is being automatically saved to the Drafts folder. This doesn't
happen with any other type of item, like mails or contacts - just with
this custom form.

Do you have any idea why this could be happening?

Txs again for your help. Much appreciated!!

R.


All times are GMT +1. The time now is 10:32 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com