Note that you can also get the auto-increment value before by calling JetUpdate, since this value is assigned when JetUpdate is called. You need to use the JET_bitRetrieveCopy parameter with JetRetrieveColumn.
For an example in managed code, see "How to get the value of a column with auto-increment"? section on this page .
source share