I'm trying to type something in a textbox in the header of a form and filter the form.
After typing the keyword in the textbox, if I click a button, the focus moves to the button, the textbox is updated and the procedure in on_Click of the button filters the form.
If I try to click an image to start filtering (instead of a command button), the focus doesn't move to the image, hence the textbox is not updated, Access thinks the textbox is still empty and can not filter the form with the keyboard.
I have to click another control to update the textbox and then click the image to start filtering.
Is there any way to bypass this second click? I mean is there anyway to simply type something in a textbox and click an image to run a procedure?
Thanks for any kind of advice.
After typing the keyword in the textbox, if I click a button, the focus moves to the button, the textbox is updated and the procedure in on_Click of the button filters the form.
If I try to click an image to start filtering (instead of a command button), the focus doesn't move to the image, hence the textbox is not updated, Access thinks the textbox is still empty and can not filter the form with the keyboard.
I have to click another control to update the textbox and then click the image to start filtering.
Is there any way to bypass this second click? I mean is there anyway to simply type something in a textbox and click an image to run a procedure?
Thanks for any kind of advice.