Hello,
I'm linking a subreport to a main report, using a character field (employee number) in the main container report to link to an employee number prompt in the subreport. The problem is, for employee numbers with a leading zero, the subreport at runtime generates an empty result set. All other employee numbers generate subreport data fine.
The only cause I can think of is somehow the employee numbers with leading zeros are being translated as a number when being linked to the subreport. Except I checked the subreport employee parameter, and that is defined as a string!
When I run the subreport standalone for that leading zero employee number, data does appear. So the subreport on its own is pulling the data in fine. It's just when linked to the container main report that the empty result set occurs.
Very frustrating; any ideas appreciated.
Oh, and I'm on Crystal 2008. The version under "About" says 12.0.0.683.
Thanks all.
-SL
I'm linking a subreport to a main report, using a character field (employee number) in the main container report to link to an employee number prompt in the subreport. The problem is, for employee numbers with a leading zero, the subreport at runtime generates an empty result set. All other employee numbers generate subreport data fine.
The only cause I can think of is somehow the employee numbers with leading zeros are being translated as a number when being linked to the subreport. Except I checked the subreport employee parameter, and that is defined as a string!
When I run the subreport standalone for that leading zero employee number, data does appear. So the subreport on its own is pulling the data in fine. It's just when linked to the container main report that the empty result set occurs.
Very frustrating; any ideas appreciated.
Oh, and I'm on Crystal 2008. The version under "About" says 12.0.0.683.
Thanks all.
-SL