View Single Post
  #1   Report Post  
VG44@PTF VG44@PTF is offline
Junior Member
 
Posts: 0
Default SYNTAX ERROR in Mail Merge

I am trying to write some logic for a mail merge that sums 2 fields in Word but there is a chance that either of the fields could be blank. When it is blank, I get a Syntax Error. I have googled and written different ways and cannot get it to work. Any ideas what I am doing wrong?

{ = if { MERGEFIELD PNT_500 } = "" 0 { MERGEFIELD PNT_500 } + if { MERGEFIELD PNT_100 } = "" 0 {MERGEFIELD PNT_100 }}