Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get lines from a recordset into a CRichEditCtrl box?

Status
Not open for further replies.

pigeonbr

Programmer
Jul 19, 2003
2
CA
Hi,
A visual C++ 6.0 app, ODBC, using a SELECT statement in a CRecordset::Open() statement as follows:
CString strCmd;
strCmd = "SELECT [102_3_FenetreDeSortie] FROM [Amenagements Exterieurs] WHERE [102_3_FenetreDeSortie] LIKE '+*'";//
//create an instance of the recordset Amenagements Exterieurs
CAmenExtSet rsAmenExt;
rsAmenExt.Open(CRecordset::dynaset,_T(strCmd),CRecordset::readOnly);

Question: if I have a CRichEditCtrl,how do I transfer the result of my query one line at a time to the RichEdit box ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top