I have a main form. A Button on the main form pops up an email form. I send the email and do a Dcmd.Close on the email form. But what happens is the main form closes and the pop-up email form remains open!
I have tried doing a SetFocus to one of the controls on the email form before doing the DoCmd.Close, but still the wrong form closes.
What can I do to make sure that the correct form closes?
Robert
I have tried doing a SetFocus to one of the controls on the email form before doing the DoCmd.Close, but still the wrong form closes.
What can I do to make sure that the correct form closes?
Robert