Solved

multiple table in MFC

Posted on 2003-10-27
6
219 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now