Hi, in a form there’s a combobox in which AfterUpdate event the code filters the records which name field matchs with the value introduced in the combobox.
The combobox Limit to list property is set to no. Then, if the value is selected from the list there’s no problem, but if the value is written, the Enter key must be pressed for the the filter be applied (run the AfterUpdate event of the combobox), and as result of that the focus goes from the first control of the form to the second one when the filter is applied because in each control in the form the KeyPress procedure displaces the focus to the next control if the pressed key is Enter.
Which is the way of running the AfterUpdate event of the combobox when its value is keyed preventing the running of the KeyPress event of the form first control? When the AfterUpdate event procedure of the combobox is preceded by the line
Msgbox “”
the KeyPress event of the form first control doesn’t enter.
Thanks for any help given.
The combobox Limit to list property is set to no. Then, if the value is selected from the list there’s no problem, but if the value is written, the Enter key must be pressed for the the filter be applied (run the AfterUpdate event of the combobox), and as result of that the focus goes from the first control of the form to the second one when the filter is applied because in each control in the form the KeyPress procedure displaces the focus to the next control if the pressed key is Enter.
Which is the way of running the AfterUpdate event of the combobox when its value is keyed preventing the running of the KeyPress event of the form first control? When the AfterUpdate event procedure of the combobox is preceded by the line
Msgbox “”
the KeyPress event of the form first control doesn’t enter.
Thanks for any help given.