Close Form help Needed

bluenose76

Registered User.
Local time
Today, 13:58
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
 
In the event for opening form 2, past in the following code.
Code:
DoCmd.Close
 
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:
 
see this link and be sure to explicitly identify the form you want to close

Good luck.
 

Users who are viewing this thread

Back
Top Bottom