B
bronco104
I'm using Word 2007 to mailmerge invoice data from a DBF file. The DBF file
presents two tax fields that we would like to add together and show as one
value on the invoice. My formula for this is:
{ =SUM({ MERGEFIELD TAX },{ MERGEFIELD SECONDTAX}) }
However, we have gift invoices where the DBF file don't give any values for
taxes (null value), so my formula will return a syntax error.
I've tried to add an IF field to trap the null, but I'm new at this sort of
thing:
{ IF SUM({ MERGEFIELD TAX },{ MERGEFIELD SECONDTAX}) = "" "0" "SUM({
MERGEFIELD TAX },{ MERGEFIELD SECONDTAX})"}
All I get with this is the value of { MERGEFIELD TAX }, not the SUM of both.
Any help would be appreciated.
presents two tax fields that we would like to add together and show as one
value on the invoice. My formula for this is:
{ =SUM({ MERGEFIELD TAX },{ MERGEFIELD SECONDTAX}) }
However, we have gift invoices where the DBF file don't give any values for
taxes (null value), so my formula will return a syntax error.
I've tried to add an IF field to trap the null, but I'm new at this sort of
thing:
{ IF SUM({ MERGEFIELD TAX },{ MERGEFIELD SECONDTAX}) = "" "0" "SUM({
MERGEFIELD TAX },{ MERGEFIELD SECONDTAX})"}
All I get with this is the value of { MERGEFIELD TAX }, not the SUM of both.
Any help would be appreciated.