I'm using CR8.5 and Oracle 8 backend
Here are my select statements:
If {?LastName} = * then
If {?First} = * then
If {ENCOUNTER_TYPE} = BV then
{VISIT_DATE} in {?V_Start} to {?V_End}
Else
UpperCase(TrimRight({LASTNAME})) = UpperCase({?LastName}) and
UpperCase(TrimRight({FIRSTNAME})) = UpperCase({?First}) and
{ENCOUNTER_TYPE} = BV and
{VISIT_DATE} in {?V_Start} to {?V_End}
When I enter * for last and first name parameters and enter a date range, the report returns six records. However, when I pick one person (I enter last and first name for the parameters...same date range) from the six records to test the Else part of the statement, the same six records return as if I enter * for the last and first name parameters.
-there are quotations around * and BV
-I have also try:
If {?LastName} like * then
If {?First} like * then...not working either
-I have also try without the TrimRight and Uppercase functions in the Else part, not working either.
Can someone please tell me what is wrong with these statements. I have spent a few hours and couldn't figure out Your help is greatly appreciated.
Bryan
Here are my select statements:
If {?LastName} = * then
If {?First} = * then
If {ENCOUNTER_TYPE} = BV then
{VISIT_DATE} in {?V_Start} to {?V_End}
Else
UpperCase(TrimRight({LASTNAME})) = UpperCase({?LastName}) and
UpperCase(TrimRight({FIRSTNAME})) = UpperCase({?First}) and
{ENCOUNTER_TYPE} = BV and
{VISIT_DATE} in {?V_Start} to {?V_End}
When I enter * for last and first name parameters and enter a date range, the report returns six records. However, when I pick one person (I enter last and first name for the parameters...same date range) from the six records to test the Else part of the statement, the same six records return as if I enter * for the last and first name parameters.
-there are quotations around * and BV
-I have also try:
If {?LastName} like * then
If {?First} like * then...not working either
-I have also try without the TrimRight and Uppercase functions in the Else part, not working either.
Can someone please tell me what is wrong with these statements. I have spent a few hours and couldn't figure out Your help is greatly appreciated.
Bryan