Close Form help Needed (1 Viewer)

bluenose76

Registered User
Joined
Nov 28, 2004
Messages
127
Hi,

I have a simple form that has two buttons on it.

Button one closes the form

Button two opens another form

What i would like, is, When i click on button two, it opens the form i want but closes the current form.

Can anyone offer any advice?

Thank you

Rgds
Bev
 

JHB

Have been here a while
Joined
Jun 17, 2012
Messages
7,720
In the event for opening form 2, past in the following code.
Code:
DoCmd.Close
 

bluenose76

Registered User
Joined
Nov 28, 2004
Messages
127
In the event for opening form 2, past in the following code.
Code:
DoCmd.Close

Hi,

Thank you for your reply. I have tried this, however, the issue with this is that when I click on the button, the new form opens and immediately closes but the original form is still there?

:confused:
 

jdraw

Super Moderator
Staff member
Joined
Jan 23, 2006
Messages
12,579
see this link and be sure to explicitly identify the form you want to close

Good luck.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom