Hey so I am working on some forms in VBA and am having some issues. I open other forms from my main form, but when I exit one of the other forms using the red “x” button, it closes my main form as well, not just the other form.
How can I prevent this?
You should use a code that only closes the sub form.
e.g. your sub form name is SubForm1
But since you are using x-button to close the sub form, you can use
QueryCloseEvent.PS: helpful if you could post your code by editing your question.