[AccessD] Closing a Form using VBA

Steve Schapel miscellany at mvps.org
Wed May 14 00:17:01 CDT 2008


Darryl,

Try it like this:

DoCmd.Close acForm, Me.Name

Regards
Steve


Darryl Collins wrote:
> aaaah, Hi everyone.
> 
> I am sure this is dead simple, but I keep thinking in Excel.VBA rather than Access.VBA so I get stuck. urrrgh.
> 
> On Form1 I have a button that opens Form2.  Once Form2 is open I want Form1 to close itself and save any data that maybe there.



More information about the AccessD mailing list