Hi everyone!
Looks like problems never come alone, I still didn’t solve that mysterious #ERROR issue that I encounter difficulties with multiple IF statements. I did search the forum, and came across this topic:
I did have a look at the suggested solution and it was exactly what I had done: here is the definition of the variable I created to display the result of my multiple statements:
= If (UserResponse (“SQL 1 with ekswtst” , “No du tiers”)=“10860”) Then “ATS”
Else If (UserResponse (“SQL 1 with ekswtst” , “No du tiers”)=“7994”) Then “C Set ID”
Else If (UserResponse (“SQL 1 with ekswtst” , “No du tiers”)=“11156”) Then “PRODIS”
Else If (UserResponse (“SQL 1 with ekswtst” , “No du tiers”)=“11267”) Then “FIRST”
Else If (UserResponse (“SQL 1 with ekswtst” , “No du tiers”)=“12587”) Then “SWISS VIDEO”
Else If (UserResponse (“SQL 1 with ekswtst” , “No du tiers”)=“12778”) Then “SECURAX”
Else If (UserResponse (“SQL 1 with ekswtst” , “No du tiers”)=“13277”) Then “PROSECURITY”
Else “#MAUVAIS NUMERO DE TIERS#”
I tested it on the two first values (10860 and 7994) and it displays the correct string (“ATS” and “C Set ID” respectively), but as soon as I try a further value the resulting string becomes “SQL1 with ekswtst”
Any help would be appreciated ![]()
Manuel
PS: the report uses two DP’s, both free-hand SQL and I’m running BO Full Client 6.5.2 querying Oracle 8.1 DB
mvansluys
(BOB member since 2006-02-28)
(BOB member since 2002-06-06)