I run a crystal report from a windows form by selecting an employee from a list and click the [run report] button. I can select different employees and rerun the report. The folowing code is used for the record selection:
myreport.DataDefinition.RecordSelectionFormula = "{EmployeeTable.IDNum} = " & intID & " and {EmplHourTable.HourType} = " & "'D'"
This record selection formula works perfectly in VS 2005 with Crystal.
When converted to VS 2010, the program works every time except the 1st time where all records are selected. Each subsequent click of the [run report] button works great
I'm stumped. HOw could it not work the first time I hit the run report button, but work all subsequent times?
I cannot convert to 2010 until I resolve this simple thing.
Help.