M Mmattson Registered User. Local time Today, 18:43 Joined Oct 28, 2002 Messages 46 Nov 20, 2002 #1 I used the command button wizard to create a button to move to the next page (form). I would like this action to also close the form I am leaving. How to do this?
I used the command button wizard to create a button to move to the next page (form). I would like this action to also close the form I am leaving. How to do this?
C casey Registered User. Local time Today, 23:43 Joined Dec 5, 2000 Messages 448 Nov 20, 2002 #2 Open the OnClick event for your button. Following the code that opens your first form...type in the following command replacing the YourFormName with the name of the form that you want to close. DoCmd.Close acForm, "YourFormName" Try that HTH
Open the OnClick event for your button. Following the code that opens your first form...type in the following command replacing the YourFormName with the name of the form that you want to close. DoCmd.Close acForm, "YourFormName" Try that HTH
M Mmattson Registered User. Local time Today, 18:43 Joined Oct 28, 2002 Messages 46 Nov 20, 2002 #3 ...worked beautifully. Thank you.