R
Rob W
Greetings,
Apologies posting this here but thought someone might use crystal reports as
the Microsoft public forum is
virtually empty.
Within my vb.net application I have viewed a crystal report and
programmatically added a sort selection based on the selection of ONE radio
button.
This selected all the database records (member details), then using a
checkbox I wanted a flag to determine if the member was deceased or not.
I created a parameter field as type Boolean and then added the following to
the record selection -> formula -> {Members.cDeceased} = {?paramDeceased}
When testing within the vb.net crystal report layout manager and using the
preview it ONLY retrieves rows when the parameter value is FALSE.
If I remove the selection formula i.e. the where clause ALL rows are
retrieved where deceased is TRUE and FALSE.
Note: I did notice when showing SQL query the Boolean values are 0 and 1
whereas if I displayed the integer value of the checkbox in my vb.net
application it is 0 and -1.
Why can't I retrieve records when the value of deceased is TRUE as 100%
positive records exists (as per test above and viewing the data)?
Thanks
Rob
Apologies posting this here but thought someone might use crystal reports as
the Microsoft public forum is
virtually empty.
Within my vb.net application I have viewed a crystal report and
programmatically added a sort selection based on the selection of ONE radio
button.
This selected all the database records (member details), then using a
checkbox I wanted a flag to determine if the member was deceased or not.
I created a parameter field as type Boolean and then added the following to
the record selection -> formula -> {Members.cDeceased} = {?paramDeceased}
When testing within the vb.net crystal report layout manager and using the
preview it ONLY retrieves rows when the parameter value is FALSE.
If I remove the selection formula i.e. the where clause ALL rows are
retrieved where deceased is TRUE and FALSE.
Note: I did notice when showing SQL query the Boolean values are 0 and 1
whereas if I displayed the integer value of the checkbox in my vb.net
application it is 0 and -1.
Why can't I retrieve records when the value of deceased is TRUE as 100%
positive records exists (as per test above and viewing the data)?
Thanks
Rob