I having problems passing datetime parameter from my main report through the subreports. The data is not congruent all the way through, indicating that the date is not being pass correctly. Can anyone help?
Try creating the same parameter in the subreport and using it in the subreport record selection formula. Then link the parameter of the main report {?datetime} to the parameter of the subreport {?datetime}, NOT to {?pm-?datetime}. In lower versions of CR, you would use the dropdown box in the lower left corner of the subreport linking screen to find the correct parameter.
You have to have created the parameter within the subreport and you have to have added it to the record selection criteria before it becomes available. Also note that it must be of the same datatype as the parameter in the main report.
Also when selecting a date from the drop down menu, it remains on the current date. For instance. I select May 1, 2005, when I run the report, it run against the current date not May 1, 2005.
Did you by any chance check "range limited value" in the set default parameter screen without changing the date from the current date? Go to parameter->edit->set default->and check there for each parameter.
I thought maybe the reason you were always getting the currentdate was because you might have checked "Range limited value" without changing the default dates (currentdate).
I was suggesting that you should either uncheck "Range limited value" for each of your parameters, OR select the range which you are willing to allow for each parameter. If you checked "range limited value" WITHOUT changing the dates shown in the range, your parameter would always use the currentdate.
I tried both ways and for some reason the current date comes in for both the begin and end date.
I tried without range and using discrete, that did not work. I've tried using range parameters and changing the date to not be the current date. I put in a big range, from the beginning of the year to the end. I can't seem to get past this date issue.
You should be using discrete date parameters for both parameters (do not allow multiple values and do not check range). Try unchecking "Range limited values". That should be all that is necessary to get this to work.
That is what I started with and I thought it should work as well; however, I'm not sure if it is data type that is causing the problem or what but it will not change from the current date even when selected. I'm going to check the data I am retrieving from the database because this is not right. Any ideas let me know.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.