Adrian,
You can't really use this same FindRecord approach if you are looking for
the search data in more than one field. If this was your requirement, I
would consider doing it by making another form, in continuous view, to
list the records (as there may be more than one?) that have the search
text in more than one field. Then you could use an OpenForm action in the
macro on your button, and in the Where Condition argument of the OpenForm
action, the equivalent of something like this...
[OneField] Like "*" & [Forms]![YourFormName]![Texto2] & "*" Or
[AnotherField] Like "*" & [Forms]![YourFormName]![Texto2] & "*"
That's if you want the records returned to *contain* the search data in
the dwesignmated fields. If you want an exact match, then it would be
morwe like this...
[OneField]=[Forms]![YourFormName]![Texto2] Or
[AnotherField]=[Forms]![YourFormName]![Texto2]
--
Steve Schapel, Microsoft Access MVP
Steve, Thanks a lot!!! Work Perfect!!
What it would happen if, instead of searching in a only one field, I
want to search at all of the fields of the Form?
Where can I read be more than enough how do we modify those parameters?
Thanks!