Hiya
Crystal Version: 9.0
Database: Access 97
I have a number of running totals in my report but i am having particular problems with one of them.
The running total counts the number of visits to a patient and is evaluated using the following function:
The problem is that this doesn't seem to be returning the correct values.
When i query the database directly i get different results.
Hopefully someone could shed some light on why this may be the case. I have a feeling that i have done something wrong in the evaluate formula.
Any help is much appreciated.
Thanks
Crystal Version: 9.0
Database: Access 97
I have a number of running totals in my report but i am having particular problems with one of them.
The running total counts the number of visits to a patient and is evaluated using the following function:
Code:
(
{CONTACTS.PRIMARY_REASON_CARE} = "BLC"
or
{CONTACTS.PRIMARY_REASON_CARE} = "GUF"
)
or
(
instr({CONTACTS.OTHER_REASONS_CARE}, "BLC") <> 0
or
instr({CONTACTS.OTHER_REASONS_CARE}, "GUF") <> 0
)
or
(
instr({CONTACTS.INTERVENTIONS},"BLM") <> 0
or
instr({CONTACTS.INTERVENTIONS},"BLW") <> 0
or
instr({CONTACTS.INTERVENTIONS},"SUC") <> 0
or
instr({CONTACTS.INTERVENTIONS},"URC") <> 0
or
instr({CONTACTS.INTERVENTIONS},"REC") <> 0
or
instr({CONTACTS.INTERVENTIONS},"CHY") <> 0
)
The problem is that this doesn't seem to be returning the correct values.
When i query the database directly i get different results.
Hopefully someone could shed some light on why this may be the case. I have a feeling that i have done something wrong in the evaluate formula.
Any help is much appreciated.
Thanks