Does anyone know how to do this?
I have a table which holds the text for letters in its fields. I have a form where the user can edit this text and add 'letters' (records).
I then have a form where the user can select the 'letter' he/she wishes to use and on a report template have the letter created with all the necessary text and address details etc entered.
This all works fine, but I really want to be able to insert fields into the text of the letter without having to play around with text boxes in the report and so create a report for each letter and deny the user from adding his/her own letters and the ability to edit the text freely.
So for example in the table where the text for a letter is, it might be something like:
Thank you for you recent correspondence dated {MostRecentCorrespondence} we will .....
And when the report is created in the report's related text box, it would be the above but with the field value of Me.MostRecentCorrespondence.
I specifically want to use reports rather than word templates as the report will be used to create a pdf often and automatically added to emails afterwards etc and of course to allow the user to manage their letters and choose what fields of those allowed to be entered and where.
I hope the above makes sense, please do ask if not.
I was thinking that maybe some sort of find and replace might work but from what I read you can't do that with field values.
Then I was thinking along the lines of making the text in the table holding the letter text the control source for the report text box, but that didn't work though maybe I was doing it wrong.
Any ideas would be most welcome!
I have a table which holds the text for letters in its fields. I have a form where the user can edit this text and add 'letters' (records).
I then have a form where the user can select the 'letter' he/she wishes to use and on a report template have the letter created with all the necessary text and address details etc entered.
This all works fine, but I really want to be able to insert fields into the text of the letter without having to play around with text boxes in the report and so create a report for each letter and deny the user from adding his/her own letters and the ability to edit the text freely.
So for example in the table where the text for a letter is, it might be something like:
Thank you for you recent correspondence dated {MostRecentCorrespondence} we will .....
And when the report is created in the report's related text box, it would be the above but with the field value of Me.MostRecentCorrespondence.
I specifically want to use reports rather than word templates as the report will be used to create a pdf often and automatically added to emails afterwards etc and of course to allow the user to manage their letters and choose what fields of those allowed to be entered and where.
I hope the above makes sense, please do ask if not.
I was thinking that maybe some sort of find and replace might work but from what I read you can't do that with field values.
Then I was thinking along the lines of making the text in the table holding the letter text the control source for the report text box, but that didn't work though maybe I was doing it wrong.
Any ideas would be most welcome!