Put a command button on your form, use the wizard to create an close form
action.
After that look in the properties and go to events then choose "on click"
in the VBA code you will see a line with " DoCmd.Close"
replace it with following line
DoCmd.Close acForm,"formname",acSaveNo