View Single Post
 
Old 05-15-2016, 01:20 PM
amikelsons amikelsons is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: May 2016
Posts: 2
amikelsons is on a distinguished road
Default How to self-reference a bookmark?

I'm setting up an xml mail merge template. I need to have a bookmark self-reference itself (am trying to use it as a variable that adds onto itself with every record), but i keep getting the error "Not a valid bookmark self-reference".
Here is what I'm trying to do:
{IF {MERGEREC} = "1"}{SET ItemList ""}
{SET ItemList "{REF ItemList}{MERGEFIELD Quote_Product_Existing_Product}"}

I found someone's solution to the same problem only they were trying to do numeric calculations. The suggestion was to use:
{ SET C "{= {mergefield qty} + {REF C}" }
and the poster said that it worked perfectly. Though mine is different without the = part (also it seems to me that they are missing a }), and it's not working. What am I missing? Please help! thanks.
Reply With Quote