I have a form (UnitTotal) as a subform on the main form (CourseTaken) which is run from a query (UnitTotalAll).
The UnitTotalAll query is has 2 fields from the main form (frmCourse Taken /Units & Status) and 4 queries to calculate the different units tied to a specific status (3 units - Completed-Required status) etc.
qryUnitTotalReq:
SELECT Sum(tblCourseTaken.Units) AS TotalCreditsReq, tblCourseTaken.[790ID]
FROM tblCourseTaken
GROUP BY tblCourseTaken.[790ID], tblCourseTaken.CourseStatus
HAVING (((tblCourseTaken.CourseStatus)="Completed-Required"));
qryUnitTotalCore:
SELECT Sum(tblCourseTaken.Units) AS TotalCreditsCore, tblCourseTaken.[790ID]
FROM tblCourseTaken
GROUP BY tblCourseTaken.[790ID], tblCourseTaken.CourseStatus
HAVING (((tblCourseTaken.CourseStatus)="Completed-Core"));
qryUnitTotalContent:
SELECT Sum(tblCourseTaken.Units) AS TotalCreditsCont, tblCourseTaken.[790ID]
FROM tblCourseTaken
GROUP BY tblCourseTaken.[790ID], tblCourseTaken.CourseStatus
HAVING (((tblCourseTaken.CourseStatus)="Completed-Content"));
qryUnitTotal:
SELECT Sum(tblCourseTaken.Units) AS TotalCredits, tblCourseTaken.[790ID]
FROM tblCourseTaken
GROUP BY tblCourseTaken.[790ID], tblCourseTaken.CourseStatus
HAVING (((tblCourseTaken.CourseStatus)="Completed-Required" And (tblCourseTaken.CourseStatus)="Completed-Core" And (tblCourseTaken.CourseStatus)="Completed-Content"));
When you run the individual queries 3 work (required, core, content) but the query for total does not.
The other problem is that the subform UnitTotal is not displaying on the main form it shows in design view but not form view or layout view. Any suggestions?
The UnitTotalAll query is has 2 fields from the main form (frmCourse Taken /Units & Status) and 4 queries to calculate the different units tied to a specific status (3 units - Completed-Required status) etc.
qryUnitTotalReq:
SELECT Sum(tblCourseTaken.Units) AS TotalCreditsReq, tblCourseTaken.[790ID]
FROM tblCourseTaken
GROUP BY tblCourseTaken.[790ID], tblCourseTaken.CourseStatus
HAVING (((tblCourseTaken.CourseStatus)="Completed-Required"));
qryUnitTotalCore:
SELECT Sum(tblCourseTaken.Units) AS TotalCreditsCore, tblCourseTaken.[790ID]
FROM tblCourseTaken
GROUP BY tblCourseTaken.[790ID], tblCourseTaken.CourseStatus
HAVING (((tblCourseTaken.CourseStatus)="Completed-Core"));
qryUnitTotalContent:
SELECT Sum(tblCourseTaken.Units) AS TotalCreditsCont, tblCourseTaken.[790ID]
FROM tblCourseTaken
GROUP BY tblCourseTaken.[790ID], tblCourseTaken.CourseStatus
HAVING (((tblCourseTaken.CourseStatus)="Completed-Content"));
qryUnitTotal:
SELECT Sum(tblCourseTaken.Units) AS TotalCredits, tblCourseTaken.[790ID]
FROM tblCourseTaken
GROUP BY tblCourseTaken.[790ID], tblCourseTaken.CourseStatus
HAVING (((tblCourseTaken.CourseStatus)="Completed-Required" And (tblCourseTaken.CourseStatus)="Completed-Core" And (tblCourseTaken.CourseStatus)="Completed-Content"));
When you run the individual queries 3 work (required, core, content) but the query for total does not.
The other problem is that the subform UnitTotal is not displaying on the main form it shows in design view but not form view or layout view. Any suggestions?
