Outlook 2003 - Close parent form before opening child form

Status
Not open for further replies.
R

Randy

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
 
S

Sue Mosher [MVP]

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

"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
> .
>
 
R

Randy

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.
 
S

Sue Mosher [MVP]

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

"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.
> .
>
 
R

Randy

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.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Outlook 2003 .pst Will Not Restore Completely to Outlook 2019 Using Outlook 5
D Outlook 2003 Mail Fails Using Outlook 1
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
V Outlook 2003 and Windows 11 Using Outlook 4
glnz Moving from Outlook 2003 to MS365 Outlook - need basics Using Outlook 4
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
B Outlook 2003 email sending & receiving suddenly stopped working Using Outlook 3
H Outlook 2003 find by "has attachment" Using Outlook 1
glnz How set up new IMAP on Outlook-Office 365 and merge in pst from Outlook 2003 for same two email accounts? Using Outlook 5
P Import Categories from Outlook 2003 Using Outlook 8
V Outlook 2003 problem with Windows 10 Creators Update 1709 Using Outlook 0
M Outlook 2003 pictures - some visible, some not Using Outlook 0
S Outlook 2003 to Outlook 2013 pst file Using Outlook 5
O Memory Leak in Outlook 2003 Using Outlook 3
W Changing looks of emails in Outlook 2003 Using Outlook 0
O Outlook 2003 can't send, but settings seem OK Using Outlook 1
P URL Hyperlink not working correctly in Outlook 2003 Using Outlook 10
O Outlook 2003 can't open contacts. Using Outlook 2
O Promoting Outlook 2003 User Templates Using Outlook 1
O W-a-a-y too many PSTs (Outlook 2003) Using Outlook 0
J Outlook 2003-2010 PST Field Editor Using Outlook 1
P Outlook 2003 - Do I need a new profile? Using Outlook 2
E Want to Import Outlook 2003 pst files to later version Using Outlook 6
A error message outlook 2003 Using Outlook 1
B Seeking advice now Outlook 2003 is unsupported by Exchange Using Outlook 4
O Change Debit to Credit in Outlook 2003? Using Outlook 1
J problems downloading POP3 emails to Outlook 2003 Using Outlook 1
G Outlook 2003 VBA Won't Run In Outlook 2010 Outlook VBA and Custom Forms 4
P Outlook 2003 - possible to recreate corrupt account? Using Outlook 3
Calvyn Outlook 2003 cannot import .vcs subject Using Outlook 1
T Query about one aspect of migrating .pst files from Outlook 2003 to Outlook 2013 Using Outlook 5
C Outlook 2003 contacts Using Outlook 1
G Configuring Outlook 2003 for Gmail with both pop3 & imap4 accounts Using Outlook 1
M HELP--Extract Data from 2003 outlook transfer to excel spreadsheet Using Outlook 1
V Outlook 2003 editing problem Using Outlook 4
X Outlook 2003 not sending all of the new email message Using Outlook 1
2 How to use outlook 2003 calendar in always offline mode Using Outlook 0
G Outlook 2003 I need to move email to folder based on subject, using wild card Using Outlook 0
G outlook 2013 - Open In Outlook 2003 Using Outlook 1
A Exchange 2003 Outlook 2010 64 Bit- AutoDiscover Connection Err - Certificate Exchange Server Administration 9
T Use Outlook 2003 with Office 2013 Using Outlook 1
D Outlook 2003 contact folder opend in scrolled down position Using Outlook 2
O Need advice ASAP! Outlook 2003. Using Outlook 1
H Custom Contact form not working in Outlook 2003 Using Outlook 3
O Outlook 2003 forms problem Using Outlook 3
O Duplicate folders in Outlook 2003 Using Outlook 3
O Moving OUtlook 2003 from bad XP to Win 7 Pro 64 -- URGENT! Using Outlook 8
A File - Save Attachments does nothing in Outlook 2003 with Exchange 2010 ... Using Outlook 3
R Menus in a new\old email not there in Outlook 2003 Using Outlook 2
R OUTLOOK 2003 on WinXP, Prob: CONTACTS or ADDRESS BOOK not connected or missing Using Outlook 6

Similar threads

Top