Access 2007 SP 1
Hello,
I have a pop-up modal form that is used as a lookup form.
In the form header, I have a textbox where the user can enter the beginning part of an address.
In the detail section (continuous forms), address/city/state/zip are listed.
In the textbox on_change event, the following code executes:
Me.Filter = "Address LIKE '*" & me.txtFindAddress & "*'"
Me.FilterOn = True
It almost works, but I've run into one problem. After the filter is applied, the focus is sent back to txtFindAddress with the search criteria highlighted.
This results with the user only being able to filter on a single character, after the on_change event executes for the first character it becomes highlighted and then changed when the user enters the second character.
IE: I can only filter on "B" or "L" but not "BL" as B will become highlighted and changed to L after the next keystroke.
I tried using SendKeys {Right} after FilterOn but to no avail.
Any help would be greatly appreciated!
Thanks,
Jason
Hello,
I have a pop-up modal form that is used as a lookup form.
In the form header, I have a textbox where the user can enter the beginning part of an address.
In the detail section (continuous forms), address/city/state/zip are listed.
In the textbox on_change event, the following code executes:
Me.Filter = "Address LIKE '*" & me.txtFindAddress & "*'"
Me.FilterOn = True
It almost works, but I've run into one problem. After the filter is applied, the focus is sent back to txtFindAddress with the search criteria highlighted.
This results with the user only being able to filter on a single character, after the on_change event executes for the first character it becomes highlighted and then changed when the user enters the second character.
IE: I can only filter on "B" or "L" but not "BL" as B will become highlighted and changed to L after the next keystroke.
I tried using SendKeys {Right} after FilterOn but to no avail.
Any help would be greatly appreciated!
Thanks,
Jason