Must ... lose ... focus...
Posted on 2007-07-20
Access subform, with a bunch of controls, and a label the size of the whole subform that says 'No records found.'
If Form.Open VBA code determines that there is a record, makes label.visible = false, all other controls.visible = true
If Form.Open VBA code determines that there is no record, makes label.visible = true, all other controls.visible = false
Problem is, one control will always have the focus, so in my quest to make all other controls.visible = false, one must have the focus, therefore will always be active.
Question: How do you set a form such that no control control that can have the focus, has the focus?