PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Close form automatically

Reply

Close form automatically

 
Thread Tools Rate Thread
Old 24-04-2004, 12:28 AM   #1
RogerC
Guest
 
Posts: n/a
Default Close form automatically


I have a button on a form I'm creating that sends to form
to me. When the user clicks on the button, is there a way
to;
1) prevent the 'Save Changes' dialog from appearing and
2) close the form immediately after it is sent without the
user having to close the form window.
Thanks!
  Reply With Quote
Old 26-04-2004, 09:49 PM   #2
Jesslyn Hendrix
Guest
 
Posts: n/a
Default Re: Close form automatically



Syntax

mailitem.close(SaveMode)

SaveMode 0 = Save with no prompt

1 = Discard changes

2 = Prompt user

Example mailitem.close(1)




"RogerC" <anonymous@discussions.microsoft.com> wrote in message
news:04a101c4298a$c1492b00$3501280a@phx.gbl...
> I have a button on a form I'm creating that sends to form
> to me. When the user clicks on the button, is there a way
> to;
> 1) prevent the 'Save Changes' dialog from appearing and
> 2) close the form immediately after it is sent without the
> user having to close the form window.
> Thanks!



  Reply With Quote
Old 11-05-2004, 06:01 PM   #3
=?Utf-8?B?Um9nZXJD?=
Guest
 
Posts: n/a
Default Re: Close form automatically

Thanks Jesslyn
When I add the code 'mailitem.clsoe(0)' and run my form I get an error dialog that says 'Object Required: 'mailitem'. Do you know what I may be doing wrong?
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off