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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INNER JOINING 3 tables not working 1

Status
Not open for further replies.

EchoAlertcom

IS-IT--Management
Oct 8, 2002
239
US
Hello,

I am using ASP and an Access 2000 Database. I need to Join 3 tables. I understand how to do it but it isn't working. I have pasted the code below, any suggestions would be appreciated:

Code:
SELECT U.NName, C.CommitteeName
FROM Users U
INNER JOIN Committee_Members CM ON U.UID = CM.UID 
INNER JOIN Committees C ON CM.CID = C.CID
WHERE U.UID = varintUID

Thank you very much
Steve
 
Hi Steve

Try this,

SELECT U.NName, C.CommitteeName
FROM Users U JOIN
(Committee_Members CM JOIN Committees C
ON CM.CID = C.CID)
ON U.UID = CM.UID
WHERE U.UID = varintUID

Hope this helps....

Daljinder
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top