Click here to Skip to main content
16,011,804 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: uhhh ...Button click event...uhhh Pin
Nish Nishant11-Mar-03 16:47
sitebuilderNish Nishant11-Mar-03 16:47 
GeneralRe: uhhh ...Button click event...uhhh Pin
Brent Lamborn11-Mar-03 16:55
Brent Lamborn11-Mar-03 16:55 
GeneralProgram Termination... Pin
ZarrinPour11-Mar-03 16:11
ZarrinPour11-Mar-03 16:11 
GeneralRe: Program Termination... Pin
Nish Nishant11-Mar-03 16:48
sitebuilderNish Nishant11-Mar-03 16:48 
GeneralRe: Program Termination... Pin
TomKat14-Mar-03 15:45
TomKat14-Mar-03 15:45 
QuestionHelp about Reading file from network? Pin
dxhdxh11-Mar-03 13:27
dxhdxh11-Mar-03 13:27 
AnswerRe: Help about Reading file from network? Pin
Brian Shifrin11-Mar-03 14:35
Brian Shifrin11-Mar-03 14:35 
GeneralNeed advise on getting back to the newly added record using AddNew Pin
ElizabethC11-Mar-03 12:50
ElizabethC11-Mar-03 12:50 
When I add a new record to the Oracle table, I also want to get back to it to update more fields after some process.

Here is an example:

m_pSet->m_strFilter = "";
m_pSet->m_strFilter = "create_date desc";
m_pSet->Requery();
.
.
.
m_pSet->AddNew(); //line1
m_pSet->m_NAME = "Elizabeth"; //line2
m_pSet->Update(); //line3
m_pSet->Requery(); //line4
UpdateData(FALSE); //line5

line5 does not display data from the newly added record.

I tried using the primary key employee_id to locate the record. Unfortunately, employee_id is updated by the Insert trigger.

How can I get back to the newly added record?

-Elizabeth

Eilzabeth
GeneralRe: Need advise on getting back to the newly added record using AddNew Pin
RaajaOfSelf11-Mar-03 17:03
RaajaOfSelf11-Mar-03 17:03 
GeneralRe: Need advise on getting back to the newly added record using AddNew Pin
ElizabethC12-Mar-03 5:43
ElizabethC12-Mar-03 5:43 
GeneralRe: Need advise on getting back to the newly added record using AddNew Pin
ramki kicha12-Mar-03 19:28
sussramki kicha12-Mar-03 19:28 
QuestionAnyone explain why this causes a BSOD? Pin
Ray Cassick11-Mar-03 10:40
Ray Cassick11-Mar-03 10:40 
AnswerRe: Anyone explain why this causes a BSOD? Pin
Christian Graus11-Mar-03 10:47
protectorChristian Graus11-Mar-03 10:47 
AnswerRe: Anyone explain why this causes a BSOD? Pin
David Wulff11-Mar-03 11:03
David Wulff11-Mar-03 11:03 
GeneralRe: Anyone explain why this causes a BSOD? Pin
Ray Cassick11-Mar-03 11:10
Ray Cassick11-Mar-03 11:10 
GeneralRe: Anyone explain why this causes a BSOD? Pin
David Wulff11-Mar-03 11:20
David Wulff11-Mar-03 11:20 
GeneralRe: Anyone explain why this causes a BSOD? Pin
Ray Cassick11-Mar-03 11:29
Ray Cassick11-Mar-03 11:29 
Generalaccess violation when trying to use fwrite() Pin
Kuniva11-Mar-03 9:36
Kuniva11-Mar-03 9:36 
GeneralRe: access violation when trying to use fwrite() Pin
Dave Bryant11-Mar-03 9:41
Dave Bryant11-Mar-03 9:41 
GeneralRe: access violation when trying to use fwrite() Pin
Kuniva11-Mar-03 9:50
Kuniva11-Mar-03 9:50 
GeneralCF_HTML (HTML Format) Pin
Kant11-Mar-03 9:34
Kant11-Mar-03 9:34 
GeneralRe: CF_HTML (HTML Format) Pin
Brian Shifrin11-Mar-03 16:40
Brian Shifrin11-Mar-03 16:40 
GeneralDecimal Symbol Pin
Haakon S.11-Mar-03 9:12
Haakon S.11-Mar-03 9:12 
GeneralRe: Decimal Symbol Pin
brianwelsch12-Mar-03 9:47
brianwelsch12-Mar-03 9:47 
GeneralRe: Decimal Symbol Pin
Haakon S.12-Mar-03 11:09
Haakon S.12-Mar-03 11:09 

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.