OnLostFocus: Close

racemadnss

Registered User.
Local time
Today, 15:39
Joined
May 18, 2004
Messages
58
Is there a way that I can close my popup form when it loses focus.

My clients will be double clicking on listbox to open the popup and I want it to close when they go to double click on another item in the listbox.

Right now I have it set as a Modal Popup, which works fine but I'd rather it close on its own then have my users have to click the (X) then select another item.

Code:
Private Sub Form_LostFocus()
    DoCmd.Close
End Sub
 
race,

You can make it non-modal, then when they do something else, you
can close it. If it is modal, then it pretty much has their
attention anyway.

Wayne
 

Users who are viewing this thread

Back
Top Bottom