T
tryit
Hi All,
I am searching my table as follows:
SELECT Table1.ID, Table1.field1, Table1.field2
FROM Table1
WHERE (((
[Table1]![field1] Like "*" & [Forms]![SearchForm]![txtSearch] & "*"
Or [Forms]![SearchForm]![txtSearch] Is Null
Or
[Table1]![field2] Like "*" & [Forms]![SearchForm]![txtSearch] & "*" Or
[Forms]![SearchForm]![txtSearch] Is Null)
=True));
The problem is that I want this search to search all fields in my
table. So, every time I add a field, I have to add a new field and a
new line like:
[Table1]![NEWFIELD] Like "*" & ... etc.
Is there any way I can just put some sort of wild card in here?, like:
[Table1]![*] Like "*" & ... etc.
And be done with it??? --Or the equivalent? Putting a star there
doesn't seem to work.
Thanks,
TI
I am searching my table as follows:
SELECT Table1.ID, Table1.field1, Table1.field2
FROM Table1
WHERE (((
[Table1]![field1] Like "*" & [Forms]![SearchForm]![txtSearch] & "*"
Or [Forms]![SearchForm]![txtSearch] Is Null
Or
[Table1]![field2] Like "*" & [Forms]![SearchForm]![txtSearch] & "*" Or
[Forms]![SearchForm]![txtSearch] Is Null)
=True));
The problem is that I want this search to search all fields in my
table. So, every time I add a field, I have to add a new field and a
new line like:
[Table1]![NEWFIELD] Like "*" & ... etc.
Is there any way I can just put some sort of wild card in here?, like:
[Table1]![*] Like "*" & ... etc.
And be done with it??? --Or the equivalent? Putting a star there
doesn't seem to work.
Thanks,
TI