G
Gman063 via AccessMonster.com
I have a form (frmMyForm) with a text box (txtLastname) that I am using to
filter records in a subform (frmMy subform) that is based on a query. I tied
the field in the subform that I would like to filter to the text box using
the “Like” function in the criteria area. It works great when I requery the
subform using the after update function.
What I would like to do is as characters are entered into the textbox it will
continue to filter the subform. (i.e. Lastname is the field being queried….
user enters “b” and it filters the subform….user enters another character
after the “ba” and it continues to filter. If user backspaces it continues to
filter.) Basically, I would like the text box to act as an auto complete
function. I am lost at how to do this or whether or not it is even possible.
I have tried using the onkeypress property but I do not think I am smart
enough yet to effectively use this function. Any help would be much
appreciated.
filter records in a subform (frmMy subform) that is based on a query. I tied
the field in the subform that I would like to filter to the text box using
the “Like” function in the criteria area. It works great when I requery the
subform using the after update function.
What I would like to do is as characters are entered into the textbox it will
continue to filter the subform. (i.e. Lastname is the field being queried….
user enters “b” and it filters the subform….user enters another character
after the “ba” and it continues to filter. If user backspaces it continues to
filter.) Basically, I would like the text box to act as an auto complete
function. I am lost at how to do this or whether or not it is even possible.
I have tried using the onkeypress property but I do not think I am smart
enough yet to effectively use this function. Any help would be much
appreciated.