Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stupid Question Pin
TolTol5-Jan-04 5:53
TolTol5-Jan-04 5:53 
GeneralRe: Stupid Question Pin
Iain Clarke, Warrior Programmer5-Jan-04 6:39
Iain Clarke, Warrior Programmer5-Jan-04 6:39 
GeneralRe: Stupid Question Pin
Prakash Nadar5-Jan-04 12:10
Prakash Nadar5-Jan-04 12:10 
GeneralRe: Stupid Question Pin
Michael P Butler5-Jan-04 7:21
Michael P Butler5-Jan-04 7:21 
GeneralDrag from control to Explorer Pin
Anonymous5-Jan-04 1:10
Anonymous5-Jan-04 1:10 
GeneralRe: Drag from control to Explorer Pin
Prakash Nadar5-Jan-04 5:08
Prakash Nadar5-Jan-04 5:08 
GeneralRe: Drag from control to Explorer Pin
thowra5-Jan-04 13:44
thowra5-Jan-04 13:44 
GeneralWeird ODBC bug Pin
Salvador Dali5-Jan-04 0:39
Salvador Dali5-Jan-04 0:39 
I am using ODBC to connect to an ms access mdb file.
When trying to add a new recordset to an empty table, I get an error in CRecordSet::Update and the whole operation fails.
The code looks like this:

<br />
rs.Open(CRecordset::dynaset);<br />
rs.AddNew();<br />
rs.m_ent_id = 1;<br />
rs.m_ent_nom = "String data";<br />
rs.Update();    // This is where the exception is thrown<br />
rs.Close();<br />


I think the reason for this is that when Update() is called and the new record is added, it then tries to return to the previously selected record, which in this case doesn't exist.
Apparently, others have come across this, as can be seen here.

Any suggestions? Confused | :confused:

Have no fear of perfection - You will never reach it

GeneralRe: Weird ODBC bug Pin
Roger Wright5-Jan-04 6:05
professionalRoger Wright5-Jan-04 6:05 
GeneralRe: Weird ODBC bug Pin
David Crow5-Jan-04 7:44
David Crow5-Jan-04 7:44 
GeneralRe: Weird ODBC bug Pin
Salvador Dali5-Jan-04 10:33
Salvador Dali5-Jan-04 10:33 
GeneralRe: Weird ODBC bug Pin
David Crow5-Jan-04 11:05
David Crow5-Jan-04 11:05 
GeneralRe: Weird ODBC bug Pin
Salvador Dali5-Jan-04 14:54
Salvador Dali5-Jan-04 14:54 
GeneralRe: Weird ODBC bug Pin
David Crow6-Jan-04 2:30
David Crow6-Jan-04 2:30 
GeneralBaloon Tip for Tray Icon Pin
---Ranger---5-Jan-04 0:34
---Ranger---5-Jan-04 0:34 
GeneralChange title bar color Pin
no_life4-Jan-04 23:13
no_life4-Jan-04 23:13 
QuestionCan anybody help me. I am facing display problem in MSFlexGrid activex Control in VC++ Pin
Member 7383644-Jan-04 23:04
Member 7383644-Jan-04 23:04 
GeneralScrolling CHtmlView Pin
Moilanen4-Jan-04 21:36
Moilanen4-Jan-04 21:36 
GeneralControl the Recording volume control through code Pin
elza4-Jan-04 20:30
elza4-Jan-04 20:30 
GeneralRe: Control the Recording volume control through code Pin
Anonymous4-Jan-04 23:38
Anonymous4-Jan-04 23:38 
GeneralDiff. b/w Single Threaded and Multi Threaded Pin
Shenthil4-Jan-04 20:26
Shenthil4-Jan-04 20:26 
GeneralRe: Diff. b/w Single Threaded and Multi Threaded Pin
valikac5-Jan-04 4:51
valikac5-Jan-04 4:51 
Generalheap question Pin
abc8764-Jan-04 20:21
abc8764-Jan-04 20:21 
GeneralRe: heap question Pin
Prakash Nadar4-Jan-04 22:17
Prakash Nadar4-Jan-04 22:17 
GeneralRe: heap question Pin
Mike Beckerleg6-Jan-04 2:39
Mike Beckerleg6-Jan-04 2:39 

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.