Well I intended to see if I could get the job done by figuring it out by myself just to see if I could be. However, now that I get right down to it, I'm going to have to just that and look at some previous examples since I don't know how to start the UDF.