In my example I am passing a company name as a parameter which is not mandatory one. Typically my data set returns a Brand name. In this case, if parameter is null, relevant data fields in the sub report will show a label called “Brand not available”.
IF (@companyName is NOT NULL) BEGIN SELECT new_brandname as BrandName FROM .... WHERE new_companyName = @companyName END ELSE BEGIN SELECT 'Brand Name not Available' as BrandName END
A simple trick.
No comments:
Post a Comment