Hi David,
Thanks for the suggestion. I have added the following:
transactionTxt.setKey3 (DirPartyTable::getName(CustTable::Find(common.(InvoiceAccountField)).PartyId)
But I get ProjFormLetter_InvoiceinitTransactionTxt getName is not a class function.
/Thor