>ed in what part of the function it goes and chooses the rate correctly..
>dont i have to put
>a for(i) statemnet like this so it brings the actual value...
>
> if found()
> for lN = 3 to fcount()
> if upper(field(lN)) = upper(pCode)
> lRate = eval(field(lN))
> exit
>
If pCode contains a field name, then EVAL(pCode) would return the value of the field whose name was contained in pCode.