S
Sietske
Hi all!
Hopefully there is someone present who can help me with the following
question.
I'm currently busy with:
I have made a search form for a table with several hundreds of records,
which users can use to search for specific data. When a search field (in this
case the search field txtSummary) is filled in, the content of the field is
compared to all content of the memo field "Summary" in the table, by filling
in a string:
strConditie = "[Omschrijving] Like '*" & txtOmschrijving.Value & "*'"
My current problem:
The memo field "summary" can contain a lot of text. With the method above,
it is not possible to enter more than just one search word which are not in
that exact order.
My question:
How can I deal with the words entered in the search field in such a way that
the record is found in which all the search words are found, whatever the
order of these words? I was thinking of cutting the text, filled in at
txtOmschrijving, by using a "for"-loop, based on the position of spaces in
the filled in text. However, I don't know how to do it.
Thanks in advance for helping me!
Hopefully there is someone present who can help me with the following
question.
I'm currently busy with:
I have made a search form for a table with several hundreds of records,
which users can use to search for specific data. When a search field (in this
case the search field txtSummary) is filled in, the content of the field is
compared to all content of the memo field "Summary" in the table, by filling
in a string:
strConditie = "[Omschrijving] Like '*" & txtOmschrijving.Value & "*'"
My current problem:
The memo field "summary" can contain a lot of text. With the method above,
it is not possible to enter more than just one search word which are not in
that exact order.
My question:
How can I deal with the words entered in the search field in such a way that
the record is found in which all the search words are found, whatever the
order of these words? I was thinking of cutting the text, filled in at
txtOmschrijving, by using a "for"-loop, based on the position of spaces in
the filled in text. However, I don't know how to do it.
Thanks in advance for helping me!