I need to remove all 8 or 9-digit numbers from memo fields in a table. They are at varying positions within the fields.
I was able to construct a SELECT query to retreive all the records that contain these numbers, using "Like" and a pattern, but I can't figure out a query solution to replace these numbers with a mask, like "********** ".
Can probably construct a VBA solution to loop through all the characters of each memo field, but I'd like to find an easier/better solution, if one exists.....
If this is not possible, do you know if there is a way to return only the substrings that match the query criteria? For example, if a memo field has "this is for customer #99999999 calling about an issue", can you just return the "99999999" part in the query instead of the whole field?
Thank you very much in advance for any help you can provide.
I was able to construct a SELECT query to retreive all the records that contain these numbers, using "Like" and a pattern, but I can't figure out a query solution to replace these numbers with a mask, like "********** ".
Can probably construct a VBA solution to loop through all the characters of each memo field, but I'd like to find an easier/better solution, if one exists.....
If this is not possible, do you know if there is a way to return only the substrings that match the query criteria? For example, if a memo field has "this is for customer #99999999 calling about an issue", can you just return the "99999999" part in the query instead of the whole field?
Thank you very much in advance for any help you can provide.
Comment