p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

activex_data_objects thread: About posting results get from ADO to correct edit box


Message #1 by "CJ" <chuanjee@y...> on Wed, 11 Jul 2001 18:12:28
Dear all,



I am doing a project on using Visual C++ as the language to access a 

database (Access format) using ADO. It is a MFC based program. I have 

problem when trying to get data from the recordset and then post them to 

the edit command box on my form. Can anyone help me on this problem. 



Besides that, if I would like to set up a edit box that whenever I key in a 

customerID, then it will automatically check the recordset for this ID and 

return the Customer name from the record set and display in the same edit 

box.



Thanx in advance for advice.



Regards,

CJ
Message #2 by "Venkat Raman" <holmes@p...> on Fri, 13 Jul 2001 11:20:17 +0800
Try using recordset binding , you need to create your own class that 

inherits CADORecordBinding.For more refer to microsoft documentation 

(microsoft.com/data or msdn.microsoft.com)



Message #3 by "CJ" <chuanjee@y...> on Wed, 18 Jul 2001 13:50:59
Thanx for your advice. This works and the microsoft documentation is great.





> Try using recordset binding , you need to create your own class that 

> inherits CADORecordBinding.For more refer to microsoft documentation 

> (microsoft.com/data or msdn.microsoft.com)

> 


  Return to Index