T
Theresa D via AccessMonster.com
Hello,
I am using Access 2002, but have a db that is 2000 file format. I have
a query that works correctly, but when my boss used the wizard to create a
report from it, the detail level was not correct. The query takes fields
from 3 tables. The first table is just a course number (the primary key) and
name. The second table has course num and session num as the primary key,
plus info about that session. The third table has the course num, session
num, and facilitator as primary key, but no other fields. There can be many
sessions for each course and many facilitators for each session (the
relationships are set up correctly, with all of the referential integrity
boxes checked, if that makes a difference). The report is grouping on the
course name and session number. The only thing in the detail level is the
facilitator names. The correct number of facilitators is being displayed for
each session, but it is always the same name, which is the one on the first
line of the datasheet view of the query. Here is the SQL from the query:
SELECT tblCourse.strCourseName, tblCourseSession.intSessionNo,
tblCourseSession.dteCourseStart, tblCourseSession.dteCourseEnd,
tblCourseSession.strVenue, tblCourseSessionFacil.strFacilName
FROM tblCourse INNER JOIN (tblCourseSession INNER JOIN tblCourseSessionFacil
ON (tblCourseSession.intSessionNo = tblCourseSessionFacil.intSessionNo) AND
(tblCourseSession.intCourseNo = tblCourseSessionFacil.intCourseNo)) ON
tblCourse.intCourseNo = tblCourseSession.intCourseNo
ORDER BY tblCourse.intCourseNo, tblCourseSession.intSessionNo,
tblCourseSessionFacil.strFacilName;
What can I do to get the report to display the facilitators correctly?
I can't change the file format of the db, as it is for the governement of a
Sub-Saharan country. They are not exactly on the cutting edge of technology.
TIA,
Theresa
I am using Access 2002, but have a db that is 2000 file format. I have
a query that works correctly, but when my boss used the wizard to create a
report from it, the detail level was not correct. The query takes fields
from 3 tables. The first table is just a course number (the primary key) and
name. The second table has course num and session num as the primary key,
plus info about that session. The third table has the course num, session
num, and facilitator as primary key, but no other fields. There can be many
sessions for each course and many facilitators for each session (the
relationships are set up correctly, with all of the referential integrity
boxes checked, if that makes a difference). The report is grouping on the
course name and session number. The only thing in the detail level is the
facilitator names. The correct number of facilitators is being displayed for
each session, but it is always the same name, which is the one on the first
line of the datasheet view of the query. Here is the SQL from the query:
SELECT tblCourse.strCourseName, tblCourseSession.intSessionNo,
tblCourseSession.dteCourseStart, tblCourseSession.dteCourseEnd,
tblCourseSession.strVenue, tblCourseSessionFacil.strFacilName
FROM tblCourse INNER JOIN (tblCourseSession INNER JOIN tblCourseSessionFacil
ON (tblCourseSession.intSessionNo = tblCourseSessionFacil.intSessionNo) AND
(tblCourseSession.intCourseNo = tblCourseSessionFacil.intCourseNo)) ON
tblCourse.intCourseNo = tblCourseSession.intCourseNo
ORDER BY tblCourse.intCourseNo, tblCourseSession.intSessionNo,
tblCourseSessionFacil.strFacilName;
What can I do to get the report to display the facilitators correctly?
I can't change the file format of the db, as it is for the governement of a
Sub-Saharan country. They are not exactly on the cutting edge of technology.
TIA,
Theresa