Drew Wutka
DWUTKA at Marlow.com
Wed Sep 8 10:09:38 CDT 2010
Back when I used to use Access as an interface, I liked to put my forms on the desktop (hide the Access window). In 97, it worked fine to make the windows 'popup', but in 2000 and later, initially, the code I had for hiding the Access window also required the window to be modal, to show up on the desktop. Found a way around that, which might help circumvent the bug you have run into: Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Private Const SW_SHOW = 5 'put the above in the forms declarations , then the following in the on load event (or on open) ShowWindow Me.hwnd, SW_SHOW Me.Repaint Hope that helps. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MACE, Terry Sent: Tuesday, September 07, 2010 5:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Strange Behaviour with Popup Forms in Acc2007 John, None of the forms are modal but all are pop up. I've also found another area in the database that exhibits the same behaviour and it's also fired from a double-click event. All the ones that are fired from a command button work fine. You may be right in that it is a bug. Regards Terry Mace Logistics Support Officer & Maintenance Supervisor The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.