I don't understand what you mean by:
Open
(or requery) the bound form in the afterupdate event of the control providing
the criterion.
I have a form called "ClientSearch" with one unbound field called "Text0".
In the criteria of the field I want to look up is:
[Forms]![ClientSearch]![Text0]
Do I need to put something in form or Field of the form?
Sorry, Bob - I did reply (I thought) but it evidently got lost.
You can do this all with one Form. Base the form on this query - the
query will be referencing a textbox on the form itself (it's
convenient to put the textbox in the form's Header but this is not
essential). If you make the query criterion
=[Forms]![ClientSearch]![Text0] OR [Forms]![ClientSearch]![Text0] IS
NULL
you'll see all records by default.
So let's say that ClientSearch displays all of the information that
you want to see. Open the form in design view and display the
properteies of Text0 (by the way, you can and should rename the
control to something meaningful). Select its AfterUpdate event, click
the ... icon by it, and choose Code Builder. Edit the two lines Access
gives you to
Private Sub Text0_AfterUpdate()
Me.Requery
End Sub
This will repopulate the form with just the "hits" from the query.
John W. Vinson[MVP]