Close form automatically

  • Thread starter Thread starter RogerC
  • Start date Start date
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!
 
Syntax

mailitem.close(SaveMode)

SaveMode 0 = Save with no prompt

1 = Discard changes

2 = Prompt user

Example mailitem.close(1)
 
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?
 
Back
Top