[AccessD] Lost Focus. Not?

artful at rogers.com artful at rogers.com
Tue Mar 6 14:37:37 CST 2007


It hasn't quite lost focus yet, since its lost focus event is still running. You might be better off specifically setting the focus to a new control, within your lost focus event. Then you can hide the control.

 
Arthur 



----- Original Message ----
From: Rocky Smolin at Beach Access Software <rockysmolin at bchacc.com>
To: Access Developers discussion and problem solving <accessd at databaseadvisors.com>
Sent: Tuesday, March 6, 2007 3:12:30 PM
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


More information about the AccessD mailing list