Rocky Smolin at Beach Access Software
rockysmolin at bchacc.com
Wed Mar 7 01:14:42 CST 2007
Jim: Well my problem was in having unrealistic expectations about the behavior of others - other controls that is. You would think that by the time a Lost Focus event occurs, that the control could no longer have the focus. How sadly mistaken I was. You see, when the combo box triggers its Lost Focus event, it really hasn't given up it's focus. It is clinging desperately to the past, insisting that it has really not lost focus, and is in denial about the need to let go of its visibility. I learned all this by watching Dr. Phil's week long Access special. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 06, 2007 10:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lost Focus. Not? Hi Rocky: This should only happens if your cursor is sitting or you have focus on the field you are trying to turn visibility off on. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 06, 2007 12:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lost Focus. Not? Dear List: When the following code is run: Private Sub cboManufacturers_LostFocus() Me.cboManufacturers.Visible = False End Sub I get an error that says "You can't hide a control that has the focus." Doesn't seem to make sense. What am I missing here? TIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.7/712 - Release Date: 3/6/2007 3:42 PM