>Fred
>
>While that would work, I'm trying to avoid sticking extra code everywhere I call a report, that is why I was hoping to be able to detect it.
>
>Kirk
Then put all your code for a report in a class or a function that you pass parameters to and change all the calls to the REPORT command to use your code. Not exactly what you wanted to hear, but that's probably a better solution anyways.