(E-Mail Removed) wrote:
> I'm tryng to replicate the box in object that can filter the
> visualized data while I digitize searching in every field of the
> table.
>
> I have realized something similar with this simple code that filter
> olny one field: """"" Me.Filter = "[LastName] Like '*" &
> [ControlName] & "*'" Me.FilterOn = True """""
>
> But write the some code for hundreds filed become reaaly hard.
>
> It's possible change [LastName] with something similar that mean
> [EVERY FIELD]?
>
At the very least you will need to "fold" your table so all the text data is
in a single column, each row identified by the table's key. To do this, you
would use a union query:
select keyfield1,...,keyfieldN,"Testfield1_Name" As TextFieldName,
TextField1 As TextValue
FROM tablename
union
select keyfield1,...,keyfieldN,"Testfield2_Name", TextField2 FROM tablename
union
select keyfield1,...,keyfieldN,"Testfield3_Name", TextField3 FROM tablename
....
union
select keyfield1,...,keyfieldN,"TestfieldN_Name", TextFieldN FROM tablename
Save the query as "qTextUnion", for example. Then, to search for "MOKBA":
SELECT keyfield1,...,keyfieldN, TextFieldName, TextValue
FROM qTextUnion
WHERE TextValue LIKE "*MOKBA*"
The problem of course will be performance.