Hi, I am new to SSRS and have created a couple of reports with input parameters. Now I am trying to use the column name as a parameter. Can any one suggest any workaround on how to use the column names as an input parameters. For example, I have an input parameters called 'ByDate' which takes three values (saledate, settled date and disbursed date). Based on this, I need to use the sql condition as 'solddate < = ''' or settleddate <='' or disbursedDate <=. Thanks
solddate < = '' makes no sense, since a date value can't be compared to an empty string. If you verify the dates, which you should do before you get near a SQL statement, won't even access the database if the one of the dates is blank.