Hi.
Can I tweak a mergefield contents so that if the field is blank it stays
blank and if it contains a number it adds 1000000 to it?
thanks
You could try a nested field
{ IF "{ MERGEFIELD myfield }" = "" "" "{ ={ MERGEFIELD
myfield }+1000000 }" }
(all the {} need to be the special field braces you can insert using
ctrl-F9.
That won't work if your field can contain non-numeric text, e.g. " " or
"abc" :-)
Peter Jamieson
> Hi.
> Can I tweak a mergefield contents so that if the field is blank it stays
> blank and if it contains a number it adds 1000000 to it?
> thanks
Boots - 19 Jun 2006 15:22 GMT
thanks for your response. I tried this
{ IF "{MERGEFIELD Control_Num}" = "" "" "{ ={ MERGEFIELD Control_Num
}+1000000 }" }
but ot deosn;t seem to work. I created the braces using ctrl + f9.
Boots
> You could try a nested field
>
[quoted text clipped - 12 lines]
> > blank and if it contains a number it adds 1000000 to it?
> > thanks
Boots - 19 Jun 2006 15:23 GMT
Sorry it does work. I'd spelt control wrong. thanks
> You could try a nested field
>
[quoted text clipped - 12 lines]
> > blank and if it contains a number it adds 1000000 to it?
> > thanks