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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula Error

Status
Not open for further replies.

donnarenia

Technical User
May 28, 2010
41
US
if {?Salesperson} = "Salesperson 1" then {CLNTCUS.~Custom20}else
if {?Salesperson} = "Salesperson 2" then {CLNTCUS.~Custom22}

What does the error "The formula result must be a string" mean in reference to the above formula that I am trying to enter in the display spring for a field
 
IF these values are numbers, you have to convert them to strings, as in:

if {?Salesperson} = "Salesperson 1" then
totext({CLNTCUS.~Custom20},0,"") else
if {?Salesperson} = "Salesperson 2" then
totext({CLNTCUS.~Custom22},0,"")

-LB
 
Thanks that was very helpful...You are the BEST
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top