Seems like a lot of work for something that is already built in.
You know you can right click on a field on the form and type in your criteria in the "Filter" criteria. On version before 2007, you can just type in the text you want followed by a "*". On 2007, you can tell it that the text begins with and just type in your text.
Otherwise, you've got some coding to do.