G
Guest
I am trying to build a database in Access 2003 that will filter approximately
65,000 records of bank transactions and flag those transactions that contain
the names of high risk countries (and other key words). I have a table with
a field that aggregates the text of all transactions, and another table with
a list of countries and their risk scores.
I would like to have a query that assigns a risk score to each transaction
based on which country names appear in the text. One way to do this is to
have a calculated field for each country and write an IIF statement that
returns the country's risk score if the name of the country appears in the
text. It pulls the risk score from the country table using a DLookup. I'm
finding that these queries run very slowly.
Is there a more efficient way of searching the entire country table at once,
without creating a separate field for each country? It seems an InStr
function would work, but then I would lose the trail of specifically which
countries appear in the text.
I would be grateful for any ideas as to how I can run this search more
efficiently.
Thanks!
65,000 records of bank transactions and flag those transactions that contain
the names of high risk countries (and other key words). I have a table with
a field that aggregates the text of all transactions, and another table with
a list of countries and their risk scores.
I would like to have a query that assigns a risk score to each transaction
based on which country names appear in the text. One way to do this is to
have a calculated field for each country and write an IIF statement that
returns the country's risk score if the name of the country appears in the
text. It pulls the risk score from the country table using a DLookup. I'm
finding that these queries run very slowly.
Is there a more efficient way of searching the entire country table at once,
without creating a separate field for each country? It seems an InStr
function would work, but then I would lose the trail of specifically which
countries appear in the text.
I would be grateful for any ideas as to how I can run this search more
efficiently.
Thanks!