What Doug and I suggested is all in Access VBA.
This is the Sub I actually tested on:
****
Public Sub CloseAllForms()
Dim intIndex As Integer
For intIndex = Forms.Count - 1 To 0 Step -1
DoCmd.Close acForm, Forms(intIndex).Name, acSaveNo
Next intIndex
End Sub
****
Whenever you want to close all Forms, you simply use the statement
CloseAllForms