Why does this query return 0 results? (picture) (1 Viewer)

Zak14

Registered User.
Local time
Today, 03:17
Joined
Jun 27, 2014
Messages
166
Is it supposed to do this? Am I doing something wrong?
Picture attached. Thanks.
 

Attachments

  • query.JPG
    query.JPG
    51.8 KB · Views: 80

JHB

Have been here a while
Local time
Today, 04:17
Joined
Jun 17, 2012
Messages
7,732
Maybe any corresponding data?
 

vbaInet

AWF VIP
Local time
Today, 03:17
Joined
Jan 22, 2010
Messages
26,374
It's a simple matter of your joins. Change all three joins to include all data from tbl_Classes.
 

plog

Banishment Pending
Local time
Yesterday, 21:17
Joined
May 11, 2011
Messages
11,658
INNER JOINS act as criteria, you must have data in both sides of the join for anything to be returned. That means you one or more of your links don't have matching data between them.

So, one or more of the following is true:

1. tbl_Classes.CourseID has no values in tbl_Courses
2. tbl_Classes.TrainingCenreID has no values in tbl_TrainingCentres
3. tbl_Classes.TeacherID has no values in tbl_Teachers

If you think there should be results, show data from all your tables which you believe will produce these results.
 

Zak14

Registered User.
Local time
Today, 03:17
Joined
Jun 27, 2014
Messages
166
Thanks guys. I've been trying to figure this one out all day; I should've known.
I'm not inputting any data atm so I made the join a type 3 so all data from tbl_Classes is displayed.
 

Users who are viewing this thread

Top Bottom