• Jeff, may I send that to my boss?

    Sure... in fact, I'm honored :blush:. But, I would be very careful and I'd possibly do a bit of editing... the term "boss" indicates some form of "management" and they don't take too kindly to being sucker punched with such words as "knows the cost of everything and the value of nothing" or "management borders on the fringes of absolute ignorance". You have to have a very special, frank, and highly trusted/earned relationship with your bosses where they value what you think and do much more highly than your occasional conversational indescretion...

    ... be careful, Gail... such words can put you in the soup line literally overnight.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)