SQL - CRecordSet
Mike_at_Nestor
Date: 02/28/05
- Next message: Koti: "highlight the tab in tabcontrol"
- Previous message: Avinash: "ActiveX with password edit control blanks out"
- Next in thread: Roy Fine: "Re: SQL - CRecordSet"
- Reply: Roy Fine: "Re: SQL - CRecordSet"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 28 Feb 2005 11:07:28 +0100
Hi !
I am trying to use MFC and CRecordSet class to manage a database.
My database is on MSDE or Interbase servers. Some fiels are "auto
incremented". This works well.
My problem is " how to retreive the newly added record". How can I retreive
the ID (or default fields) of my new record after a CRecordSet::Update( ) ?
First I call CRecordSet::AddNew( ), then I specify all needed fields and
then I call CRecordSet::Update( ).
The contents of my record set after the Update method is always the content
of the currently selected record before the AddNew call.
I'd like to know what are the default fields (or special fields like auto
increment) filled in after addnew / update.
thanks
Mike
- Next message: Koti: "highlight the tab in tabcontrol"
- Previous message: Avinash: "ActiveX with password edit control blanks out"
- Next in thread: Roy Fine: "Re: SQL - CRecordSet"
- Reply: Roy Fine: "Re: SQL - CRecordSet"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|