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!

Please help me with my string formula 1

Status
Not open for further replies.

Tupence

MIS
Aug 31, 2005
16
FR
Hi,

I'm trying to find a way of counting how many payments count{charges.ncharge} and how much sum{charges.ncharge}have been made "by us" and "by client", the only place in my database where this info is found is in an automatically generated comment string field {comment_.ccomment}. I am not familiar with string formalas and would be greatful of some help. The field {comment_.ccomment}will contain the words "received by us" and "received by client" e.g cheque received by client.

thanks
 
As far as searching a string, create the following formula

//@Received_By
if instr(uppercase({comment_.comment}),"RECEIVED BY US")> 0 then "US"
else if instr(uppercase({comment_.comment}),"RECEIVED BY CLIENT") > 0
then "CLIENT"

-lw


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top