Use the syntax:
docmd.close acform, <name of form in quotes>
Create a line for each form you want to close. If you are
not certain they are open you can do an "on error resume
next" command before the close commands and then set it
back to "on error goto 0" or wherever the error was set
before the commands.
You can find documentation in the access help about
docmd.close for further information.
I hope this helps! If you have additional questions on this topic, please
reply to this posting.
Need quick answers to questions like these? The Microsoft Knowledge Base
provides a wealth of information that you can use to troubleshoot a problem
or answer a question! It's located at http://support.microsoft.com/support/c.asp?M=F>.