Your solution solves one problem, but creates another. If I enter one
text
string as criteria, it works perfectly. All records that have that text
string within one of the four fields specified are returned as the query's
result. In my test, it amounted to 13 records.
However, if I add a second criteria, no records are returned. My test
above
should have returned no less than 13 records again, since the my original
criteria remains. In other words, I don't want all criteria provided to
have
to be present in any given record in order for it to be returned as a
result.
If any of the criteria provided is present in any one of the fields
selected, those records should be included in the query's results.
Right now the criteria row for my first column shows:
Like "*" & [Forms]![frmCMDMSearch]![Text21] & "*" And Like "*" &
[Forms]![frmCMDMSearch]![Text23] & "*" And Like "*" &
[Forms]![frmCMDMSearch]![Text25] & "*" And Like "*" &
[Forms]![frmCMDMSearch]![Text27] & "*" And Like "*" &
[Forms]![frmCMDMSearch]![Text29] & "*"
However, I should have mentioned before that this same expression appears
one row lower for my second field, and one row beneath that for the third,
etc. Is that correct?
Can you still help?
--
GD
Michel Walsh said:
It is because you need to AND the sequences.
In the graphical editor, bring the actual field under which the criteria
is
written a total of 6 times (in six columns), and, under one of these
column,
type the criteria:
Like "*" & [Forms]![frmCMDMSearch]![Text21] & "*"
Then under another copy (or more frequently, under another field) , add
the
criteria
Like "*" & [Forms]![frmCMDMSearch]![Text23] & "*"
and so on.
You don't need the "OR IS NULL" , here, since you use the operator LIKE.
You would need it if you were using strict equality.