I'm working on a project cleaning up addresses and need to create about 40+ rules for fixing them. What I need is a Microsoft Access file with a query that calls a visual basic module to run multiple REPLACE commands on a string of data.
Example: Let's say the data strings look like this
- 123 Fake Str.
- 345 Fake Street
I want the visual basic module to be able to do
- Replace "Str." with "ST"
- Replace "Street" with "ST"
- Replace "Road" with "RD"
and so on. Once I have that, I can copy the structure over to the actual data. However I'm at the limit of my knowledge on how to call a VBA function in a query, and how to get the VBA function to export a value that the query can read. Any help would be much appreciated