How To Retrieve a Counter Field Value Without Requerying (132397)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q132397 SUMMARY
The Microsoft Access ODBC driver version 2.x or higher provides a Counter
field data type. This is an autoincrement field, meaning that the value of
the field is assigned automatically by the ODBC driver when a record is
first created. This value can then be used as a primary key or as general
index.
Once a record is added, the value of the counter field is assigned by the
Microsoft Access ODBC driver version 2.x or higher. You can save this value
for later use, and have an application retrieve the value of the counter
field without re-querying. This article explains how.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB132397 |
---|
|