Thanks for your response Peter, however the problem I have is that I don't necessarily know that date either.
This issue is around someone who is hired very late on in the pay period, and thereby gets processed for the first time in the following pay period.
However, I think I have a cunning plan for avoiding the need for a UDF - in normal situations I am looking for a balance at the appropriate date, which ordinarily is the period in which the employee was hired. That balance can be relied on to be non-zero, except when there was no processing done in that period - therefore, if I encounter a zero figure in that situation, I merely have to get the balance as at the following period.
_________________________
L&K
CT
Remember: A dog is for life, not just for Christmas... unless you're in Korea