Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql query (in access vs sql7)

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i have this in sql7:

tablea
fielda1,fielda2
tableb
fieldb1,fieldb2
tablec
fieldc1,fieldc2

select tablea.fielda1,tablea.fielda2,tableb.fieldb1,tableb.fieldb2,
tablac.fieldc1,tablec.fieldc2
from tablea,tableb,tablec
where tablea.fielda1 = tableb.fieldb1
and tablea.fielda1 *= tablec.fieldc1

how can do the same in vb for access97


thank´s for all
 
Try this:


"SELECT tablea.fielda1, tablea.fielda2, tableb.fieldb1, tableb.fieldb2, tablec.fieldc1, tablec.fieldc2
FROM (tablea INNER JOIN tableb ON tablea.fielda1 = tableb.fieldb1) INNER JOIN tablec ON tablea.fielda1 = tablec.fieldc1;"
Good Luck MLK

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top