• simonwestb (9/3/2012)


    Excellent! That's exactly what I needed. Thank you.

    Now all you have to do is to make sure no one can pull any SQL Injection on you. And, yeah... there are [font="Arial Black"]LOTS [/font]of articles on that subject because so many people have been nailed by it on things just like this.

    I can help avoid SQL Injection on the comma delimited string of numbers but what goes into "CLocation.Text"? And, yeah... I'm strongly recommending that you DON'T use that code until you make it bullet proof. It's just waiting to be attacked.

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