subform closes parent form?

PaulWilson

Registered User.
Local time
Yesterday, 21:47
Joined
May 19, 2011
Messages
43
I have login form (frmB) placed as a subform on a parent form (frmA).
When a user logs in, the login subform (frmB) opens another form (frmC).
I then want form (frmA) having (frmB) to close.

frmC opens OK, but...

DoCmd.Close acForm, "frmA" does not close frmA.

Why not?

I'm using Access 2007 with tabbed windows.

??

PaulWilson
 
frmA.visible = False

This won't close it, but you won't see it either.
 
Instead of the code you have, try this:

DoCmd.Close acForm, Me.Parent.Name, acSaveNo
 

Users who are viewing this thread

Back
Top Bottom