Views: 6 Size: 392.0 KB">Database1.accdb
The form in the attached database is bound to a table in which there are no records. The form has an unbound textbox in its header. The textbox's KeyDown event is set to display the textbox's text in a message box, but instead generates runtime error 2185 ("You can't reference a property or method for a control unless the control has focus"). Why is this, when the textbox clearly has the focus?*
*I've tested this using Screen.ActiveControl, as well as the textbox's LostFocus event.