How to pass null parameter value in CR.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a report using c# and cr.net. Report fetching data from
database. I pass parameter value to report from my win form to specify what
data to fetch. If I pass null means I need to fetch all the data from table.

I wnat to know how to pass null value for a parameter.

Can any one help, or point me to another group?

Thanks,
Shailesh
 
Try with '' ,but you can also modify sql statement for example if you pass
parameter value 'all' then fetch all rows.
I hope this helps.
 
Radenko,

I not using any sql statement in my report. I have created parameters in
reports and setting values for that parameter from my win form. It is working
fine when I pass some value for parameter, but when I want all (null
parameter value) records, then how can I achive this?
 
Radenko,

Clarify further, I want to disable parameter in report, when I pass null, to
selete all the records. How can I achive this?
 
Back
Top