However, since a student can have any number of appointments I can not simply specify how long the Data Source is.
A typical Data Source creation would look like this:
wrdDoc.MailMerge.CreateDataSource('C:\DataDoc.doc',,,'FirstName, LastName,' +
' Address, PostCode');
How could I use a FOR loop to add extra fields?
Something like:
wrdDoc.MailMerge.CreateDataSource('C:\DataDoc.doc',,,'FirstName, LastName,' +
' Address, PostCode + FOR Count := 1 to WhateverLengthIneed do 'Appointment' + IntToStr(Count));
Of course that doesn't work for me.
What will work? :crying:


Sign In
Create Account


Back to top











