Close Form help Needed (1 Viewer)

bluenose76

Registered User.
Local time
Today, 21:36
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
Local time
Today, 22:36
Joined
Jun 17, 2012
Messages
7,732
In the event for opening form 2, past in the following code.
Code:
DoCmd.Close
 

bluenose76

Registered User.
Local time
Today, 21:36
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
Local time
Today, 17:36
Joined
Jan 23, 2006
Messages
15,364
see this link and be sure to explicitly identify the form you want to close

Good luck.
 

Users who are viewing this thread

Top Bottom