Giovanni,<br>
You need to decide how complex you want the search...I've done forms that can allow the user to search on any field in any table in the db, but this takes time to build. To start with, you should just experiment with building simple SQL statments over one table on the fly, and expand from there. FOr instance, on a button on your form you could have it search for Customers, and have textboxes txtCustCith and txtCustName<br>
<br>
dim sq as string,qd as querydef<br>
sq = "Select * From Customers WHERE "<br>
sq = sq & " CustCity = """ & me!txtCustCity & """"<br>
If not isnull(me!txtCustName) then<br>
sq = sq & " AND custname like ""*" & me!custname & "*"""<br>
end if<br>
set qd = currentdb.querydefs("tempquery"

<br>
qd.sql = sq<br>
docmd.openquery qd.name<br>
<br>
Then the sky's the limit--you can add acombo box to select the table name, basing the box on MsysObjects, other listboxes can be field with the field names from the selected tables, you can create controls on the fly after the user selects a table and fields, so you can have new fields that match the name and type of the fields chosen, etc. I've gotten crazy with these...but if this is for end users always remember--they always ask for and demand more than they need or will use, so it's best to keep things simple!

<br>
--Jim