Validation message for report parameter date validation

  • Hi

    I have to show a validation message in my SSRS report if the report parameter start date is less than the end date. I try googling, but I could’nt find a way that will really work out. Please help on this.

  • Hi,

    You could do this by having a textbox on the report containing your validation message, and toggling the visibility of the main report components (e.g. table, matrix etc) and the message textbox when startdate>enddate

    Cheers

    Paul

  • Thanks, but can you describe it further, so that I can work on it.

  • Add a textbox at the top of your report containing the error message as you would like to see it.

    Right click on the box and select textbox properties, select visibility, select show or hide depending on expression, select expression icon (fx).

    Add expression to compare the dates ie

    =Parameters!FromDate.Value<=Parameters!EndDate.Value

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Yep, David is correct, that is the exact method I use for error msgs etc in my reports.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply