i want to build a function called "ClosetheForm" that could be called in any form to close this form
The function should be the folloiwng
Public Function "CloseTheForm"
DoCmd.SetWarnings False
DoCmd.Close acForm, "Form1"", acSaveNo"
End Function
The function should be valid not only for Form1, but for any other form in my database.How can i build the code so that i should not mention any special name of a form,and to be applicable
to any form ?




