1
votes

I have a report in which a user is asked to enter a number. (parameter @number1 int).

How do I validate what the user entered?

eg. the number should be >0 and <99.

Is there some vaildation I could use? Or is there something to be done with expressions in 'available values'?

Thanks for thinking with me!

1

1 Answers

3
votes

There's no validation available directly. The most common way to do this is to use a stored procedure to validate the input. You can also use a text box with conditional visibility to display a message to the user that the value is incorrect and put conditional visibility using the same logic on other report items to hide them when the user's input is incorrect.