Click here to Skip to main content
15,905,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi i am new to vc++ and ms access i am Retrieving data from ms access 2007 send into record set
from record set i am not able to send all values to comobobox.but i was sending one one value



recordset database(&recset);

cstring sqlstring="select username,password from student"
database.Excutesql(sqlstring);
recset.open(CRecordset::forwardonly,sqlstring,CRecordset::Readonly);

recset.getfieldvalue("username",username);

m_shockwavelogin.setvariable("username",(lpctstr)&recset);


i have done like this .it is displaying only one value (username);

i am having database like given below:

id username password
1 user 1234
2 Admin 3456

these to names i have to show in comobobox.plz help me..
Posted

1 solution

Try to use

recset.movenext();
 
Share this answer
 
Comments
Member 9846414 21-Jul-13 6:35am    
thanks.it is not working.any one acn for this .help me

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