How to set the index to be autoincremented in an Access Database in VC++ 6.0

Thanks

Demarcy
demarcyAsked:
Who is Participating?
 
inprasConnect With a Mentor Commented:
U need not do anything just don't assign any value to that field assume m_auto is the field then

rs.AddNew();
rs.m_Name = "MyName";
rs.Update();

where rs has members m_auto which is set as auto in Database.... and m_Name which UR adding

Hope this helps
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.