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

Formula to bring back all data 1

Status
Not open for further replies.

lilyr

Technical User
Feb 21, 2006
1
US
I am trying to figure out how to get a custnumber to come back alone if it has shipto assigned to the orginal customer number

I have customer 0004200 and has ship to assigned 001 002 003 004 005.

If I write the formula in crystal as:

if (not isnull({custship.shipto-#})) then {cust.cust-num} + {custship.shipto-#} else {custship.cust-num}


it will only bring back the customer number with the shipto's 0004200001 0004200002 0004200003 etc. it will not bring back the 0004200.

 
Don't use a record selection, just change the join between cust and custship to a left outer.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top