Hi Experts, I'm using Crystal Reports XI with a connection to MS SQL Server. I've created a SQL query in the 'Add Command' section for the report to run off which seems to work fine. I've then added a couple of dynamic parameters on the report which again works fine. The problem I encountered was because of the size of the database the report was taking way too long for the results to display. To get around this I have added a couple of run-time date parameters from within the Database Expert's Command window, and included these inside the query (e.g. 'WHERE DateCreated BETWEEN {?prmBeginDate} AND {?prmEndDate}'). Although this has shortened the time it takes for the report to run significantly, I have encountered a new problem; the date parameters are now prompting the user twice for the values. The first time it shows the date parameters only, then once the user has entered the values it shows asks for the date parameters again only this time it shows the other parameters as well. Can anyone tell me if I'm doing anything wrong? or if anyone knows of a way to only get asked for the date parameter once? I think it is something to do with using both dynamic and static parameters together. Any help would be greatly appreciated!
↧