View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Kev[_2_] Kev[_2_] is offline
external usenet poster
 
Posts: 1
Default Arbitrary number of rows in a table

Hi all,

I am sure I am not the first person wanting to do this so I hope
someone can help me. I will use a fictional example of what I would
like to do to illustrate the problem, although this sample bears no
resemblance to the real data.


I have a merge file with 3 fields name, address and products.

"products" could either be a delimiter seperated list or a simple
space seperated.

For example, the record could be

"Kevin","My house","computer monitor scanner printer"

or

"Kevin","My house","computer;monitor;scanner;printer"

When I perform the merge, I would like the four products on a seperate
line in the document. I do not want a seperate field for each product
as the number of products is arbitrary.

Is it possible to do this easily in Word.

Or would a more complicated merge file format be required, with some
kind of ID

e.g.

"1","Kevin","My house"
"1","computer"
"1","monitor"
"1","scanner"
"1","printer"
"2","John","His house"
"2","bike"
"2","car"
etc

in other words, each single mail merge spans multiple lines in the
file.

If anyone has any experience of this scenario I would be grateful for
your comments.

Thanks in anticipation