Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBest database classes for this purpose: not really a programming question Pin
pankajdaga17-Dec-03 11:21
pankajdaga17-Dec-03 11:21 
GeneralRe: Best database classes for this purpose: not really a programming question Pin
John M. Drescher17-Dec-03 17:09
John M. Drescher17-Dec-03 17:09 
Generalquick question Pin
Qbus17-Dec-03 10:41
Qbus17-Dec-03 10:41 
GeneralRe: quick question Pin
Terry O'Nolley17-Dec-03 12:34
Terry O'Nolley17-Dec-03 12:34 
GeneralRe: quick question Pin
sam India17-Dec-03 17:47
sam India17-Dec-03 17:47 
GeneralCRecordset, ODBC, and Access Pin
David Crow17-Dec-03 8:34
David Crow17-Dec-03 8:34 
GeneralRe: CRecordset, ODBC, and Access Pin
Terry O'Nolley17-Dec-03 12:39
Terry O'Nolley17-Dec-03 12:39 
GeneralRe: CRecordset, ODBC, and Access Pin
David Crow18-Dec-03 2:51
David Crow18-Dec-03 2:51 
Terry O`Nolley wrote:
In theory - you need to obtain an exclusive lock to your datasource...

I'll try this, but I'm not following your logic. What would an exclusive lock on a single-user database have to with being able to query an AutoNumber field of a newly-added record?

I guess my main concern is that the dozen or so examples I looked at on MSDN and the Internet all showed basically the same approach: after an Update(), get the bookmark, call Requery(), set the bookmark, get the AutoNumber field value. The problem seems to be that after the call to Update(), the recordset is positioned back at the first record.


Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?

GeneralRe: CRecordset, ODBC, and Access Pin
Terry O'Nolley18-Dec-03 8:19
Terry O'Nolley18-Dec-03 8:19 
GeneralRe: CRecordset, ODBC, and Access Pin
sam India17-Dec-03 18:21
sam India17-Dec-03 18:21 
GeneralRe: CRecordset, ODBC, and Access Pin
David Crow18-Dec-03 2:40
David Crow18-Dec-03 2:40 
GeneralOWL to MFC Pin
olezhik17-Dec-03 8:16
olezhik17-Dec-03 8:16 
GeneralRe: OWL to MFC Pin
Jörgen Sigvardsson17-Dec-03 8:24
Jörgen Sigvardsson17-Dec-03 8:24 
GeneralRe: OWL to MFC Pin
Terry O'Nolley17-Dec-03 12:40
Terry O'Nolley17-Dec-03 12:40 
GeneralRe: OWL to MFC Pin
Anthony_Yio17-Dec-03 15:56
Anthony_Yio17-Dec-03 15:56 
GeneralRe: OWL to MFC Pin
Joe Woodbury18-Dec-03 5:31
professionalJoe Woodbury18-Dec-03 5:31 
GeneralHardware Interfacing Pin
Member 17799617-Dec-03 7:05
Member 17799617-Dec-03 7:05 
GeneralRe: Hardware Interfacing Pin
Nitron17-Dec-03 7:16
Nitron17-Dec-03 7:16 
GeneralRe: Hardware Interfacing Pin
John M. Drescher17-Dec-03 7:30
John M. Drescher17-Dec-03 7:30 
GeneralRe: Hardware Interfacing Pin
Peter Molnar17-Dec-03 13:25
Peter Molnar17-Dec-03 13:25 
QuestionAutomated Windows testing tools...??? Pin
vlusardi17-Dec-03 5:41
vlusardi17-Dec-03 5:41 
AnswerRe: Automated Windows testing tools...??? Pin
Peter Molnar17-Dec-03 13:16
Peter Molnar17-Dec-03 13:16 
General_beginthreadex() problem... Pin
jhoin17-Dec-03 4:04
jhoin17-Dec-03 4:04 
GeneralRe: _beginthreadex() problem... Pin
John M. Drescher17-Dec-03 4:19
John M. Drescher17-Dec-03 4:19 
GeneralRe: _beginthreadex() problem... Pin
jhoin18-Dec-03 23:15
jhoin18-Dec-03 23:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.