I just started scratching the surface of using macros and am trying to figure out how to best create an iterative macro where I take my join keys and . . .
- Start with a length of 8 or LEFT([fieldname], 8) with my data on the left anchor
- Join it to an already predefined length of 8 field (LEFT[fieldname], 8) on my right Anchor
- What doesn't match on the left Anchor is then truncated to a length of 7 or LEFT([fieldname], 7) then joined to a predefined length of 7 field on the right anchor
- These steps are repeated until the field length is 2, these leftovers are joined one last time and if there still some stragglers not joined they are then sent off to a browse tool for review while all the matches are then stacked (union) together.
The image below provides an idea of what I'm doing currently and I think an iterative macro may best suit. The issue I'm facing is figuring out the proper setup, have the macro iterate down and when iterating through to say a length of 8, 6, or 2, it joins based on the predefined 8, 6, or 2 length fields on the right anchor.
Any assistance with an example how to best set that up would be awesome and thanks again!
Current process learning to convert to iterative macro