Home Forums Reporting Services SSRS 2012 How do I enforce a begin date is before an end date? RE: How do I enforce a begin date is before an end date?

  • I guess that I'd never make the assumption that the user made a reversal of the dates even by accident. What if they phat phingered something and they don't notice and then use that report as some form of gospel?

    Protect the user-in-a-hurry from such an eventuality. Make the report (or what have you) error out with an informative reason. Having the user correctly enter the dates in the correct order is a form of validation that I wouldn't gloss over.

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