If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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 |
Ads |
#2
|
|||
|
|||
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 . |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
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. . |
#5
|
|||
|
|||
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 Contacts problem- sub-form not opening for phone numb | mking007 | Outlook - Using Contacts | 2 | June 4th 09 11:53 AM |
Can I eliminate a custom form form Outlook 2003 when upgrading | kennyb | Outlook - Using Contacts | 2 | November 15th 08 12:54 AM |
Close Form After Voting | DavidW | Outlook - Using Forms | 4 | September 26th 07 03:42 PM |
Is it possible to open the default Contact form with the Activities tab activated from a custom form? VSTO 2005, Outlook 2003 | David Webb | Outlook and VBA | 1 | June 20th 06 09:59 PM |
Custom Form saved as *.oft file not opening correctly in Outlook 2003 | [email protected] | Outlook - Using Forms | 3 | April 26th 06 02:50 PM |