Setting Default Value of a Parameter to NULL in SSRS Report

If  want to Set the default value of a parameter to null then right click on parameter and select parameter properties . In GENERAL tab check Allow null value.Then click on DEFAULT VALUES tab, select the radio button of specify values. click on Fx button. A dialogue box open for writing formula. Write the formula
"= nothing"  (without double quotes) 
and click OK. Now your report will automatically take the Null value for that parameter.
This is mostly used for date-time parameters and also used when you have to pass report parameters from Application (asp page).

Comments

Popular posts from this blog

TSQL To Get All the Names of tables and Databases whose data have changed in last 24 Hours

To Get All the Names of tables and Databases their data have changed in last 24 Hours And Backup those databases

Apply paging in procedure