sheridan101
Programmer
I am using Crystal Reports.NET and am in need of making a single report that, depending on parameters passed, can query data from a main database table, or from a separate history database table with the same field setup as the main. That is, have one report be a report on main data or on history data, depending on how it is run. Unfortunately, the report definition wizard only allows you to tie the fields to one database. So, my current line of thinking is to create the query using the "Add Command" and pass it parameters for date range and database. Question... can CR.NET accept parameters in "Add Command" for ODBC? Is there a better way to do this?
I have a book for CR9 which shows a parameter section on the Add Command dialog, but the CR.NET Add Command dialog does not have this section. Can it reference main report parameters? If so, how????
If I can get this to work, then it will eliminate the need to duplicate several reports across several tables. This makes managing the reports a bit messy, not to mention the fact that maintaining them will be more difficult because you have to remember to make any changes to all of them, and I would rather not get into that can of worms!!!
I have a book for CR9 which shows a parameter section on the Add Command dialog, but the CR.NET Add Command dialog does not have this section. Can it reference main report parameters? If so, how????
If I can get this to work, then it will eliminate the need to duplicate several reports across several tables. This makes managing the reports a bit messy, not to mention the fact that maintaining them will be more difficult because you have to remember to make any changes to all of them, and I would rather not get into that can of worms!!!