Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Not able to Retrieve values from data base ...

i want to get these values on my Activex Control i.e (Flash)
SetFieldvalues is not working MsVS 2010...
Posted
Updated 22-Nov-13 2:00am
v3
Comments
[no name] 15-Jul-13 7:29am    
This is just a code dump. An unformatted code dump at that. It is not a question or description of any kind of a problem.

There is no SetFieldValue() function in the CRecordset class. You may use CDatabase::ExecuteSQL() to add or change field values when the table contains a unique ID:
CString SqlString;
SqlString.Format("UPDATE Truck SET UserName=%s WHERE TruckID=%d", 
    strName.GetString(), nID);
database.ExecuteSQL(SqlString);

Otherwise, you have derive your own table specific CRecordset class, add members for the fields, add the data exchange functions, and use the AddNew(), Edit(), and Update() functions.
 
Share this answer
 
.....................
..................
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900