I created a report years ago in CR 8.5 on a MySQL database. I had to modify the SQL query to create a UNION ALL query in the original report and it has been working fine for years. When now converting to CR 2011, the report is ignoring the second part of the UNION. It doesn't create an error, just ignores it.
When I open the report in CR 2011 myself, I can see the SQL query window from Database, Show SQL Query has the Reset button active and when I hit it, the query deletes the UNION.
I am not sure how to handle this properly so I am looking for some advice on what to do to get the report working properly again in the new version.
My thoughts so far are that I should convert the report to using a Command instead of table linking. I am not sure if I can convert it in place or do I need to create a new one with the Command and recreate the whole layout? I'd like to keep the layout and fields as is but tell the report which fields in the command are the appropriate ones for the old fields.
If my Command idea is the correct path, how do I best add the parameters? I have played a little and added two that appear to work. For the one that normally in Crystal is a
{Table.Field} startswith {?Client}
Should the resulting SQL look like this?
`table`.`field` LIKE '{?Client}%'
Any help is appreciated. TIA rasinc