G Guest Mar 21, 2005 #1 Is there a way of finding out (in Access 2000 VBA code) whether or not a control has the focus? TIA Trev
Is there a way of finding out (in Access 2000 VBA code) whether or not a control has the focus? TIA Trev
G Graham R Seach Mar 21, 2005 #2 If Screen.ActiveControl.Name = "txtMyTextBox" Then MsgBox "txtMyTextBox has the focus" End If Regards, Graham R Seach Microsoft Access MVP Sydney, Australia
If Screen.ActiveControl.Name = "txtMyTextBox" Then MsgBox "txtMyTextBox has the focus" End If Regards, Graham R Seach Microsoft Access MVP Sydney, Australia
G Guest Mar 21, 2005 #3 Thanks grayham. I knew it would be easy 'once you know how'. I was looking for things like .Hasfocus etc. Thanks again for the incredibly speedy reply Trev
Thanks grayham. I knew it would be easy 'once you know how'. I was looking for things like .Hasfocus etc. Thanks again for the incredibly speedy reply Trev