Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If OR Statement

Status
Not open for further replies.

Butlertl

IS-IT--Management
Mar 15, 2006
54
US
This is the statement but I am not getting any data....ie: when it should show a one I am getting blanks.

If {HPD_Help_Desk.CallCenterResponsePlatinumMetric}= "Pass" or
{HPD_Help_Desk.CallCenterResponseGoldMetric}= "Pass" or
{HPD_Help_Desk.CallCenterResponseSilverMetric}= "Pass" or
Then 1
Else 0

Any suggestions?

Thanks

Terry
 
Sorry...this is the statement:

If {HPD_Help_Desk.CallCenterResponsePlatinumMetric}= "Pass" or
{HPD_Help_Desk.CallCenterResponseGoldMetric}= "Pass" or
{HPD_Help_Desk.CallCenterResponseSilverMetric}= "Pass"
Then 1
Else 0
 
You need to check for nulls, so try:

If
(
not isnull ({HPD_Help_Desk.CallCenterResponsePlatinumMetric}) and
{HPD_Help_Desk.CallCenterResponsePlatinumMetric} = "Pass"
) or
(
not isnull({HPD_Help_Desk.CallCenterResponseGoldMetric}) and
{HPD_Help_Desk.CallCenterResponseGoldMetric) = "Pass"
) or
(
not isnull({HPD_Help_Desk.CallCenterResponseSilverMetric}) and
{HPD_Help_Desk.CallCenterResponseSilberMetric} = "Pass"
)
Then 1
Else 0

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top