I'm about to post a really cool function that will grab email addresses from the RM statement email addresses... and I noticed that we don't have function templates. I like to post templates here because I do most development remotely, on my client's computers.
So, here is a template for a table value function, this one allows multiple statements