Solved

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

Posted on 2000-04-20
1
156 Views
Last Modified: 2013-11-20
Thanks

Demarcy
0
Comment
Question by:demarcy
1 Comment
 
LVL 4

Accepted Solution

by:
inpras earned 50 total points
Comment Utility
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now