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

Getting no result

Status
Not open for further replies.

Dukester0122

IS-IT--Management
Mar 18, 2003
587
US
I have a formula which I need to add get more info.

select {TABLE01.ORDERNUMBER} [1]
case "B" : "BORD#"
case "D" : "DORD#"

I was trying this but won't work

select {SOP10100.SOPNUMBE} [2]
case "BO" : "BORD#"
case "DO" : "DORD#"
case "BP" : "BP#"
case "DP" : "DP#
 
Try:

select left({SOP10100.SOPNUMBE},2)
case "BO" : "BORD#"
case "DO" : "DORD#"
case "BP" : "BP#"
case "DP" : "DP#"


-k
 
Or,

Try

select {SOP10100.SOPNUMBE} [1 to 2]
case "BO" : "BORD#"
case "DO" : "DORD#"
case "BP" : "BP#"
case "DP" : "DP#"

You were actually requesting the second character from the field, not the first two.

regards,

ro

Rosemary Lieberman
rosemary-at-microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.

You will get answers more quickly if you read this before posting: faq149-3762
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top