I can't seem to figure out how to close current form.
I have form1 and I open form 2 from form1. I can't figure out how to close form1 when form2 opens.
Any help would be greatly appreciated.
OK, could you please be more specific as to where to put that event?
Are you saying I should insert docmd.Close for Form2 Open event?
I tried several combinations of everything and I just can't seem to figure it out.
Thanks!
OK, could you please be more specific as to where to put that event?
Are you saying I should insert docmd.Close for Form2 Open event?
I tried several combinations of everything and I just can't seem to figure it out.
Thanks!
FROM FORM 1:
Docmd.Close acForm, "form1", acSaveNo
Docmd.OpenForm "form2"
If you have a command button from Form 1 and when clicked (OnClick - [Event Procedure]), simply put the above code above within (just the Docmd lines of code).
You want to close the form first then open where you want the user to go. Ensure to define what you are closing, the name of the item being closed, and whether to save design changes or not, etc...etc...etc...