Thanks Kevin. This sounds very close to what I need.
The query I used to ID the records in question used the following criteria:
Like "*acct[#] ###*"
Like "*###-##-####*"
Of course there were other permutations to find Taxpayer and account numbers
but this is the basic theme. I need to delete the sensitive data and leave
the rest as in the cases:
J Smith 123-45-6789
acct# 123456 J Smith
I had planned to use the InStr to find the next space after acct# 123 (start
+ 8) for deletion but if a few trailing digits remain, that may be tolerable.
Since this is a simple identify strings and delete them, is possible that
the update query could be used instead of the more complex code? I am not
certain how to get the update to component to recognize regular expressions.
With a little help getting one of these cases working, I could easily get
through the rest on my own. A little assistance getting started would be much
appreciated.
Thanks,
alr