[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

Selecting from 2 Tables with DAO

Hi !

I'm quite new to C++ and has a question regarding databases.

I have created a project which is connected to a Access database.
My problem is now that I need to get info from 2 different tables in my database.
How do I choose which one my 'm_pSet' pointer is pointing at?

Code created by Appwizard in the Set file...

CString CRekaSet::GetDefaultSQL()
{
      return _T("[LoggedData],[Warehouse]");
}

Help appriciated!
Thanx, Christer.
0
cbjorkman
Asked:
cbjorkman
1 Solution
 
inprasCommented:
Create an object of CRekaSet
like
CRekaSet rs;
rs.Open();

now rs will contain UR values from bith tables.
Hope this helps
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now