Okay so I've been tearing my hair out for weeks over this issue. What I have is a Crystal Report that's showing a table pulled from an Access Database. The database is a HUGE pile of junk and it has a text based Date field!! Unbelievable.
This causes my Crystal Report a bunch of problems as I have to convert the date text data to date and compare it to the user inputted date to find records between the inputted dates. All would be swell if some of the entries were not blank!
Here's what I have when the user runs a filter and filters a date:
sQuery = "CDATE({tablena me.datefield}) >= CDATE('01/01/2008')";
CrystalReportvi ewer1.Selection Formula = sQuery;
CrystalReportvi ewer1.RefreshRe port();
It works fine if the date is not empty and I've tried to tell the Report "Convert Database Null Values to Default" but all that nets me is an error message of
"Bad Date Format String" because of the blank field trying to be converted. It appears the Convert Database Null Values does not work, or is not helpful at all on this end.
Please help if you have a solution on what I can do with the blank date fields! Thank you so much in advance.
This causes my Crystal Report a bunch of problems as I have to convert the date text data to date and compare it to the user inputted date to find records between the inputted dates. All would be swell if some of the entries were not blank!
Here's what I have when the user runs a filter and filters a date:
sQuery = "CDATE({tablena me.datefield}) >= CDATE('01/01/2008')";
CrystalReportvi ewer1.Selection Formula = sQuery;
CrystalReportvi ewer1.RefreshRe port();
It works fine if the date is not empty and I've tried to tell the Report "Convert Database Null Values to Default" but all that nets me is an error message of
"Bad Date Format String" because of the blank field trying to be converted. It appears the Convert Database Null Values does not work, or is not helpful at all on this end.
Please help if you have a solution on what I can do with the blank date fields! Thank you so much in advance.
Comment