• Perfect, Mike... Thanks for the tip. 

    And I see what everyone is talking about, especially you and Confucius247...   If you really want to get deeper, read the "Terms of Use" at the bottom of each page on the WebSite you just provided the link for... especially the part about "NOTICE SPECIFIC TO DOCUMENTS AVAILABLE ON THIS WEB SITE."  Authors might want to be a little bit more careful than they have...

    --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)