Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail merge unique records only...

Status
Not open for further replies.
Oct 13, 2004
39
US
Hi all

I am doing a mail merge and have a tab delimited text file with 10 fields as the data source. I only need the data from two of them - the product number and price.

There are a lot of duplicate records that I would like to not merge into the mail merge template. I cannot alter the data source so this will have to be done with Word field codes.

I have potential solution to this using some combination of fields in word but am unable to get it to work.


here is the link i found


here is what i have written - doesnt work

{IF {MERGESEQ} = "1" "{MERGEFIELD itemnum}
{MERGEFIELD itemprice}" ""}{SET itemnum1 "{MERGEFIELD itemnum}"} {IF {itemnum2}<>{itemnum1} "" ""}{SET itemnum2 "{MERGEFIELD itemnum}"}

thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top