Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoading Bitmaps Pin
FieldHawk5-Jan-04 7:12
FieldHawk5-Jan-04 7:12 
GeneralRe: Loading Bitmaps Pin
David Crow5-Jan-04 7:17
David Crow5-Jan-04 7:17 
GeneralRe: Loading Bitmaps Pin
abc8765-Jan-04 8:04
abc8765-Jan-04 8:04 
GeneralVC++6, ODBC, and Access 2000 Pin
Roger Wright5-Jan-04 6:42
professionalRoger Wright5-Jan-04 6:42 
GeneralRe: VC++6, ODBC, and Access 2000 Pin
FieldHawk5-Jan-04 7:23
FieldHawk5-Jan-04 7:23 
GeneralRe: VC++6, ODBC, and Access 2000 Pin
Chris Meech5-Jan-04 7:26
Chris Meech5-Jan-04 7:26 
GeneralRe: VC++6, ODBC, and Access 2000 Pin
Roger Wright5-Jan-04 7:50
professionalRoger Wright5-Jan-04 7:50 
GeneralRe: VC++6, ODBC, and Access 2000 Pin
David Crow5-Jan-04 7:27
David Crow5-Jan-04 7:27 
In your CRecordset-derived class, make sure that the value of m_nFields matches exactly the number of RFX_xxx() calls in the DoDataExchange() method (these calls are preceded by a call to pFX->SetFieldType(CFieldExchange::outputColumn)). This number must also match the number of columns actually being retrieved from the SELECT statement.

Now as far as m_strFilter goes, you'll also need to make sure that the value of m_nParams matches the number of '?' in m_strFilter, and that they are in the same order as the corresponding RFX_xxx() calls in the DoDataExchange() method (these calls are preceded by a call to pFX->SetFieldType(CFieldExchange::param)).

Roger Wright wrote:
Would it be simpler (and perhaps smarter) to construct separate recordsets for each table, and do this operation on just the one table? These tables don't have to be joined; it's a very simple DB.

It's always better to not add unnecessary complexity to an application. If no JOINing is required, by all means don't do it!


A rich person is not the one who has the most, but the one that needs the least.
GeneralVC++ .NET 2002 and 2003 Pro Pin
jdgonko5-Jan-04 6:26
jdgonko5-Jan-04 6:26 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
abc8765-Jan-04 6:44
abc8765-Jan-04 6:44 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
Chris Meech5-Jan-04 7:36
Chris Meech5-Jan-04 7:36 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
abc8765-Jan-04 7:55
abc8765-Jan-04 7:55 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
Chris Meech5-Jan-04 8:15
Chris Meech5-Jan-04 8:15 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
Nick Hodapp5-Jan-04 7:25
sitebuilderNick Hodapp5-Jan-04 7:25 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
Nick Hodapp5-Jan-04 7:28
sitebuilderNick Hodapp5-Jan-04 7:28 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
jdgonko5-Jan-04 7:43
jdgonko5-Jan-04 7:43 
QuestionBitmaps on Static Controls, How to ? Pin
rpadrela5-Jan-04 6:05
rpadrela5-Jan-04 6:05 
AnswerRe: Bitmaps on Static Controls, How to ? Pin
twing5-Jan-04 17:15
twing5-Jan-04 17:15 
Generalprinting question Pin
ns5-Jan-04 5:16
ns5-Jan-04 5:16 
GeneralRe: printing question Pin
David Crow5-Jan-04 7:32
David Crow5-Jan-04 7:32 
GeneralRe: printing question Pin
ns6-Jan-04 2:07
ns6-Jan-04 2:07 
GeneralSearching for a good screen saver tutorial Pin
Cactus Joe015-Jan-04 4:48
sussCactus Joe015-Jan-04 4:48 
GeneralRe: Searching for a good screen saver tutorial Pin
Prakash Nadar5-Jan-04 5:00
Prakash Nadar5-Jan-04 5:00 
GeneralRe: Searching for a good screen saver tutorial Pin
Cactus Joe015-Jan-04 8:28
sussCactus Joe015-Jan-04 8:28 
GeneralHello!Dialog! Pin
skylonely5-Jan-04 2:51
skylonely5-Jan-04 2:51 

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.