954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to join three tables in MS ACCESS 2007

how to JOIN three tables in MS ACCESS 2007. the tables are:
*student (Primary key: StudentNumber)
*event (Primary key: Event_num)
*Transaction (Primary key: Transaction_num)

the MS ACCESS gives me this code, but nothing appears in the Datasheet view.

SELECT Student.StudentNumber, Student.Lastname, Student.Firstname, Student.Initial, Event.Event, Event.EventDate, Event.EventFee, Transaction.Status
FROM Student INNER JOIN (Event INNER JOIN [Transaction] ON Event.Event_num=Transaction.Event_num) ON (Student.StudentNumber=Transaction.Student_num) AND (Student.StudentNumber=Event.Student_num);
Contagious98
Newbie Poster
22 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

try

SELECT Student.StudentNum, Student.FirstName, Student.LastName, Student.Initial, Event.Event, Event.EventDate, Transaction.Status
FROM (Student INNER JOIN Event ON Student.StudentNum = Event.StudentNum) INNER JOIN [Transaction] ON Student.StudentNum = Transaction.StudentNum;
ChrisPadgham
Posting Pro in Training
413 posts since Sep 2009
Reputation Points: 102
Solved Threads: 78
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: