I'm using VB6 with Crystal 7 and the following segment from our WHERE clause that we pass into the report through the Automation Server (cpeaut32.dll) is making Crystal bring back ALL of the records instead of just the ones we need:
sCriteria = "{ISSUES.ISSUE_STATE} = 'Q' and IsNull({ISSUES.NUMBER_ID}) = True"
We need the ISSUES.NUMBER_ID's that are NULL and they are Number fields. The above brings back thousands of records instead of the two records that we need. Is there another sure-fire way to check for NULL without using Crystal as the filtering device, thus leaving it up to Oracle to speed things up? Crystal doesn't understand normal NULL syntax, such as:
sCriteria = "{ISSUES.ISSUE_STATE} = 'Q' and {ISSUES.NUMBER_ID} is not NULL"
Thanks
sCriteria = "{ISSUES.ISSUE_STATE} = 'Q' and IsNull({ISSUES.NUMBER_ID}) = True"
We need the ISSUES.NUMBER_ID's that are NULL and they are Number fields. The above brings back thousands of records instead of the two records that we need. Is there another sure-fire way to check for NULL without using Crystal as the filtering device, thus leaving it up to Oracle to speed things up? Crystal doesn't understand normal NULL syntax, such as:
sCriteria = "{ISSUES.ISSUE_STATE} = 'Q' and {ISSUES.NUMBER_ID} is not NULL"
Thanks