Close Method Example
The following example uses the Close method to close the form Order Review, saving any changes to the form without prompting:
DoCmd.Close acForm, "Order Review", acSaveYes