Greetings,
I have created a crystal report in vb.net 2008 where the data source connection is via OleDbConnection = Microsoft.ACE.OLEDB.12.0 connecting to access 2007 database .accdb.
The report displays ALL of the data without a problem in the standard template built through the wizard.
When using the field 'deceased' an access Yes/No (Boolean) field for the record selection criteria, it ONLY retrieves rows where the value is FALSE.
I did notice that MS Access SQL equates the Yes/no field values to TRUE = -1 and FALSE = 0 whereas when showing the SQL view in crystal reports TRUE = 1 and FALSE = 0.
Changing the select criteria to use either the boolean value of TRUE or number value of 1 then NO rows are retrieved.
I can see rows exists as without the record selection criteria the deceased field is printed in the report with rows with a TRUE and FALSE values.
When I said setting the record selection criteria to True always brings back NO rows, well it sometimes does the first time then never again, when I refresh no rows appears or If I reload vb.net and run the preview again.
It's like the boolean value is automatically changed to false.
I set up a test database and I cannot access records based on the boolean value of a ms access yes/no field if equals TRUE.
It only works where the field value is FALSE.
I've been looking at this on/off for 2 days and have also posted in the microsoft public crystal reports newsgruop without success.
A googe search was fruitless too, worried as I thought if working with access and yes/no fields caused issues there would be others experiencing this issue.
Happy to attach any files if necessary.
Thanks
Rob
I have created a crystal report in vb.net 2008 where the data source connection is via OleDbConnection = Microsoft.ACE.OLEDB.12.0 connecting to access 2007 database .accdb.
The report displays ALL of the data without a problem in the standard template built through the wizard.
When using the field 'deceased' an access Yes/No (Boolean) field for the record selection criteria, it ONLY retrieves rows where the value is FALSE.
I did notice that MS Access SQL equates the Yes/no field values to TRUE = -1 and FALSE = 0 whereas when showing the SQL view in crystal reports TRUE = 1 and FALSE = 0.
Changing the select criteria to use either the boolean value of TRUE or number value of 1 then NO rows are retrieved.
I can see rows exists as without the record selection criteria the deceased field is printed in the report with rows with a TRUE and FALSE values.
When I said setting the record selection criteria to True always brings back NO rows, well it sometimes does the first time then never again, when I refresh no rows appears or If I reload vb.net and run the preview again.
It's like the boolean value is automatically changed to false.
I set up a test database and I cannot access records based on the boolean value of a ms access yes/no field if equals TRUE.
It only works where the field value is FALSE.
I've been looking at this on/off for 2 days and have also posted in the microsoft public crystal reports newsgruop without success.
A googe search was fruitless too, worried as I thought if working with access and yes/no fields caused issues there would be others experiencing this issue.
Happy to attach any files if necessary.
Thanks
Rob