The reason I asked about the data source is that you probably don't need your userform to insert anything; all that's needed is a knowledge of the data structure. After that, it's simply a matter of inserting the appropriate field coding into the document. Once.
It appears you're working with a database that has multiple Defendant fields per record and the max # of Defendant fields is 20. In that case, you could use a document like the attached. The field coding in it provides for all 20 Defendant fields, but only those that have data will actually generate any output. Simply attach it as a mailmerge main document to your database, then Finish the merge and send the output to a new document.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|