Solved

multiple table in MFC

Posted on 2003-10-27
6
241 Views
Last Modified: 2013-11-20
how to connect multiple table in MFC in a single dialog based app with header file
0
Comment
Question by:reenajasmine
  • 2
6 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 9625835
Make a query based on your tables, base a recordset on that query.  Is that what you require?

eg an SQL such as :
SELECT Adressen.Kurzname, Auftragsadressen.AuftragID
FROM Adressen INNER JOIN Auftragsadressen ON Adressen.PSID = Auftragsadressen.PSID;


0
 
LVL 6

Expert Comment

by:Triskelion
ID: 9663235
Use the class wizard.
Make a CRecordset class.
The interface will present all of your tables.
Click on all of the tables you want to join and click OK.

Back in your code, you will need to modify the m_strFilter as it will contain your WHERE clause.
The WHERE clause is very important as it will bind the results from one table to the other.
The m_strFilter will not need to include the word 'WHERE'.
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 11849672
My comment would be a way to achieve the desired effect
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 11975767
Submitted to PAQ with no points refunded (of 20)

DarthMod
Community Support Moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question