Hi legg,
You really shouldn't have different data types in the same fields. Nevertheless, you can use field coding to work around it:
{IF«vekttall» < 1 {=«vekttall»*100 \# 0.00%} {=«vekttall» \# 0}}
or:
{IF«vekttall» < 1 {=«vekttall»*100 \# 0.00%} {MERGEFIELD vekttall \# 0}}
Note: The field brace pairs (ie '{ }') for the above examples are created via Ctrl-F9 - you can't simply type them or copy & paste them from this message. Likewise, you can't type or copy & paste the chevrons (ie '« »') - they're part of the actual mergefields, which you can insert from the mailmerge toolbar.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|