cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Mid Function

Former Member
0 Kudos

Hello,

i have in datebase index like this 60001000.  I am trying display it like this 6000 1000. I used mid function in formula:

if {PKL1.BaseObject}=17 then {MID({RDR1.ItemCode}, 1, 4); MID({RDR1.ItemCode}, 4); }

else {MID({INV1.ItemCode}, 1, 4); MID({INV1.ItemCode},4)} 

I have error that this field doesnt exist. When i remove mid function its display properly.

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Krystian,

Try:

if {PKL1.BaseObject}=17 then

MID({RDR1.ItemCode}, 1, 4) &' ' & MID({RDR1.ItemCode}, 4)

else MID({INV1.ItemCode}, 1, 4) & ' ' & MID({INV1.ItemCode},4)

-Abhilash

Answers (0)