Closing PopUp Form does not return to main form

floydman

Registered User.
Local time
Today, 15:33
Joined
Aug 29, 2007
Messages
16
I have a problem with a popup form closing. After clicking OK the form closes but the main form from which the pop was launched does not come back to focus, in fact Access toolbars aren't available either. The modal property of the popup is set to No and I've also tried Yes with the same effect.

Is there some other property of the main form or popup that could cause this behavior. All the code exectutes without error and I've checked the MainForm.IsLoaded property id equal to True. Any ideas why I can't see it ?
 
I'm using

DoCmd.OpenForm "frmCampaignConfirmation", acNormal, , , acFormEdit, acWindowNormal
 
Try:
Code:
DoCmd.OpenForm "frmCampaignConfirmation", , , , acFormEdit, acDialog
...and see what happens.
 
hmm, its telling me the popup cant find controls on the main form now. This part was working OK when it was acWindowNormal.
 
I would try importing everything into a new, fresh db in case there is some corruption going on. Then Compact and Repair the new db.
 
Thanks I'll give that a shot tomorrow. I fixed some of my references to the main form and it now has the same behavior using either acDialog or acWindowNormal. When the PopUp closes the main form is in view but totally inactive and the screen did not repaint (i.e. there is a grey box over the main form where the subform appeared).
 
Problem solved! The behavior was caused by an errant DoCmd.Echo False when I never changed back to True so when the Popup closed the Main Form never repainted and appeared frozen.

RuralGuy- thanks for the suggestions.
 

Users who are viewing this thread

Back
Top Bottom