Hello,
I have a line of code in the Form_Load event of my main menu form....
Code:
DoCmd.OpenForm "frmNotes", acNormal, , , , acDialog
The code on the second form, to close itself is simply:
Code:
DoCmd.Close acForm, Me.Name
For some reason, when I close my database, the frmNotes is opened again, but in a non-responsive state. I can't use any controls to close it.
It occurs after all other forms have been closed, and i have to terminate the task.
I note that since frmNotes is opened from the Form_Load event of frmMenu, it is displayed before frmMenu is displayed.
If i change my first line of code above, to open the form without being modal/dialog mode, the frmNotes is still being launched on the Quitting of the application - but as it's no longer modal, it doesnt display. I know it's being loaded as i've got a beep event in a frmNotes routine.
Why is this form loading by itself on application closing?
Thanks