Hello,
I know when it comes to an iterative macro, in order to make it stop, the "Iterative" output must produce 0 records, however, for my use case I am not able to return 0 records. Here is my scenario:
I have two files, one with postal records, and one with postal and email records. The goal is to append emails where I can to the postal only file. In both files I can have multiple records with the same information so when I join the two it produces many matches (due to the duplicates). After the join I have to use a unique tool on the recordID from my postal file to remove duplicates there. Then I use a unique tool on the recordID of my email file so I remove duplicates there. I take the records sent to the "duplicate" portions of the unique tools and iterate those records again which produces a few more matches and put this on repeat. Unfortunately the way my database is setup is that sometimes there are a LOT of records such that I could loop 500 times if I wanted to. But I do not, I want to limit my iterations based on how many more matches is produced on each successive loop. For example, if I produce 500 matches then continue, but if I produce only 9 matches, stop iterating.
Please let me know if I need to elaborate on anything.
