My report has 2 parameters - first date and last date, and the datasets are filtered based on a date field within the dataset between those parameters. This works fine.
I want my users to be able to select specific dates, but I want to schedule a "month end" report that will be emailed out where the dates of the transactions are between the first and last day of last month. I can do this in a SSRS environment, but when i try and do it by entering default values in the parameters, it fails. The preview shows it just fine, but the report server only shows the header, and sometimes a "Specified Cast not allowed" message.
I'm also noticing that no matter what I do, if i try and filter the dataset using BETWEEN and as the expression =Parameters!sdate.Value (for the starting date) and =Parameters!edate.Value (for the ending date) the report designer ALWAYS adds the edate.value to the end of the sdate.value in the first box! No matter what i do I can't stop it from doing that - which is where the Cast error comes from. So if i add it as a <= and a separate filter as a >= it simply won't show it (no error comes up)
If i remove the default value settings - the report loads fine on the server. As soon as I have it set, the designer doesn't seem to know what to do with it so it shows preview fine, but the server can't figure out what the designer did.
So, how the heck do I get a report to run on a schedule with parameters values that need defaults entered but can't enter them in the report designer because it keeps adding the second parameter to the first?