Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

open form / close form

0 views
Skip to first unread message

alex

unread,
May 31, 2007, 10:12:19 AM5/31/07
to
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

unread,
May 31, 2007, 10:17:24 AM5/31/07
to
DoCmd.Close acForm, Me.Name

"alex" <sql...@yahoo.com> wrote in message
news:1180620739....@p77g2000hsh.googlegroups.com...

alex

unread,
May 31, 2007, 10:52:30 AM5/31/07
to
On May 31, 10:17 am, "Baz" <b...@REMOVEbcap.THEeuro1net.CAPScom>
wrote:
> DoCmd.Close acForm, Me.Name
>
> "alex" <sql_...@yahoo.com> wrote in message
> > alex- Hide quoted text -
>
> - Show quoted text -

Thanks Baz...it took me a few to figure it out...I thought 'Name' was
the name of my form!

alex

0 new messages