Ukoilman,
No help from me for Word here. Personally, I would choose the easy way out and make an MS Access report for the invoice. No programming involved at all.
Kees
I am using Word 2002 and trying to merge invoice data into a Word "Invoice" with multiple line items per invoice. A new merged document is needed when the invoice number changes.
I have tried the conditional merge per Microsoft's KB 212375.
To understand KB 212375, I have copied the code and created the word document and data file in excel, after a numerous number of attempts I am getting the example to produce 1 record to a page then moving onto the next main record. The code does not produce the multiple lines of data as per the examples on KB 212375.
I think there may be a listing problem I am not sure but, I also think there is a "loop nesting" problem. Once we....
resolve the example problem I can apply what I have learned against my invoice merge. Anybody have any suggestions.
The link to the KB is http://support.microsoft.com/default.aspx?scid=kb;en-us;212375
BTW,I have applied the technique to the invoice and sure enough, I get a one line invoice on many pages until the invoice number field has changed. I do have the "Check field" in the data records as well.
Look forward to hearing from anyone on this problem.
David

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic