Would I use the following code to prevent a form from unloading when the user click the red 'X' in the upper right hand corner of the form:
VB Code:
Private Sub Form_Unload(Cancel As Integer) Cancel = True Me.Hide End Sub
Will this do the trick or should I use the Query_Unload Event?
Thanks




Reply With Quote