Calling DoCmd.Close without an argument closes the active window. Using the Me.Name syntax takes into account scenarios in which the form in question is not an active window (the example works hidden). Personally, I prefer the explicit version because it does exactly what you want, while the implicit version is likely to do what you want.
source
share