I have a command button on form A that takes me to form B.
I want form A to close upon the execution of form B opening.
In the on click event: If I add DoCmd.Close before B opens, I can,
for only a moment, see the switchboard before form B opens. If I add
DoCmd.Close after B opens, the command closes B.
How can I close form A after Form B opens. Instead of DoCmd.Close,
I'm assuming I need to close form A by name. Any help would be
appreciated.
alex
Baz - 31 May 2007 15:15 GMT
DoCmd.Close acForm, Me.Name
> I have a command button on form A that takes me to form B.
>
[quoted text clipped - 9 lines]
>
> alex
alex - 31 May 2007 15:52 GMT
On May 31, 10:17 am, "Baz" <b...@REMOVEbcap.THEeuro1net.CAPScom>
wrote:
> DoCmd.Close acForm, Me.Name
>
[quoted text clipped - 13 lines]
>
> - Show quoted text -
Thanks Baz...it took me a few to figure it out...I thought 'Name' was
the name of my form!
alex