Re: Multiple Memo fields to TRichEdit



"Habib" <habibz@xxxxxxxxxxxxx> wrote in message news:45a80181@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi,



I need to display multiple fragments of text stored in an Access Database
formatted memo fields in a single TRichEdit.

For example, I have ADODataset1 with Summary (Memo field), and ADODataset2
with Comment (Memo field) and I want to display in a RichEdit:

Summary

Comment

How can be done this?



Thanks in advance,

As the TDBRichEdit can only display from one field, you'll need to create a calculated field that combines the two bits of text together and then get the DBRichEdit to display it. As you are using ADO, a quick way would be to modify the SQL statement, or you can create a persistent field in one of the datasets and write an OnCalcFields handler.
HTH
Andrew
.