What is the best approach to automatic letter generation?
While I'm looking at a record, I would like to generate a form letter based
on the record and relating data, ideally with one click. I've tried both
reports and forms and find limitations in both.
I'm just finishing an application where the users want to send a letter.
Actually, they want to choose between English and Spanish laguage versions,
choose the number of copies and print an accompanying envelope but, that's
another topic.
What I've done is put the parts of the letters that don't change into table
fields. Then I create a recordset using an SQL statement based on the table
fields and the form fields. I made a report and assigned the recordset as the
report's recordsource. Instant letter.
The table (I called mine tCorespondence) has these fields:
LetterName - Since I'll have more than one letter.
Salutation - Which isn't, really. In the English version it just says "Dear ".
TextBody - Contains the bulh of the letter.
Trailer - A bit of stuff just before the end of the letter like "If you have any
questions ..."
Closing - Just says, "Sincerely,"
Every other part of the letter is populated from form fields.
HTH,
RD