Close form automatically

R

RogerC

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!
 
J

Jesslyn Hendrix

Syntax

mailitem.close(SaveMode)

SaveMode 0 = Save with no prompt

1 = Discard changes

2 = Prompt user

Example mailitem.close(1)
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top