A
Arsene Lupin
Hello, everyone,
I am trying to develop a custom search utility, which will search for
a string in all text and memo fields of one table, and record all
instances where it found it in a second table. A little more detail
follows:
Have one table (let's call it table # 1), with an unknown number of
fields, of which several may be text and/or memo fields, I would like
to loop through every record, from BOF to EOF, and, in each record,
search for the occurrence of a user-provided search string in all text
and memo fields. The search string could be found as the sole content
of one of the fields or as part of the contents of a field.
For every record in table # 1 where the search string is found, I
would like to create a record in a second table (let's call it table #
2, which starts out empty), this new record appended to table # 2 will
only contain the record number on table # 1 where the string was
found. By the time table # 1 reaches EOF, table # 2 should have one
record for each time the string was found in table # 1.
Any ideas or even better, code, would be greatly appreciated,
Thanks
Arsene
I am trying to develop a custom search utility, which will search for
a string in all text and memo fields of one table, and record all
instances where it found it in a second table. A little more detail
follows:
Have one table (let's call it table # 1), with an unknown number of
fields, of which several may be text and/or memo fields, I would like
to loop through every record, from BOF to EOF, and, in each record,
search for the occurrence of a user-provided search string in all text
and memo fields. The search string could be found as the sole content
of one of the fields or as part of the contents of a field.
For every record in table # 1 where the search string is found, I
would like to create a record in a second table (let's call it table #
2, which starts out empty), this new record appended to table # 2 will
only contain the record number on table # 1 where the string was
found. By the time table # 1 reaches EOF, table # 2 should have one
record for each time the string was found in table # 1.
Any ideas or even better, code, would be greatly appreciated,
Thanks
Arsene