M
Michelle
I am merging data from a database to a Word document.
I have to merge some names to a place in the document to look like this:
John Smith, Mary Smith, Bob Jones, Fred Jones, Jane Do
(let's call them Name1, Name2, Name3, Name4, Name 5)
Trouble is, I don't know in advance how many names I will have - the
possibilities are 1-5 names.
So, I need a statement that says:
Name1
If Name2 exists, put a comma after Name1
If Name3 exists, put a comma after Name2
If Name4 exists, put a comma after Name3
If Name5 exists, put a comma after Name4
Does anyone know how to do this?
Thanks.
I have to merge some names to a place in the document to look like this:
John Smith, Mary Smith, Bob Jones, Fred Jones, Jane Do
(let's call them Name1, Name2, Name3, Name4, Name 5)
Trouble is, I don't know in advance how many names I will have - the
possibilities are 1-5 names.
So, I need a statement that says:
Name1
If Name2 exists, put a comma after Name1
If Name3 exists, put a comma after Name2
If Name4 exists, put a comma after Name3
If Name5 exists, put a comma after Name4
Does anyone know how to do this?
Thanks.