sopheak
asked on
Problem with modal forms
I have 2 forms, frmEdit and frmWait.
(frmEdit is opened modally.) On frmEdit, when a user clicks on btnSave the program seems to stop when it opens frmWait. (frmWait is just a form that informs the user to to wait while the progrm is saving)
'------------------------- -
Private Sub btnSave_Click()
frmWait.show vbmodal
Call UpdateChanges
unload frmWait
Unload me
End Sub
'--------------------
I know that it has to do something with both forms being displayed modally. If I changed it so that frmEdit is not opened modally in the beginning then the procedure will run correctly. Can someone tell me how to make this work with frmEdit being opened modally.
thanks
(frmEdit is opened modally.) On frmEdit, when a user clicks on btnSave the program seems to stop when it opens frmWait. (frmWait is just a form that informs the user to to wait while the progrm is saving)
'-------------------------
Private Sub btnSave_Click()
frmWait.show vbmodal
Call UpdateChanges
unload frmWait
Unload me
End Sub
'--------------------
I know that it has to do something with both forms being displayed modally. If I changed it so that frmEdit is not opened modally in the beginning then the procedure will run correctly. Can someone tell me how to make this work with frmEdit being opened modally.
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER