SELECT SUBQ.GroupID, SUBQ.CourseGroup, SUBQ.SType, sum( SUBQ.CountOfRID ) AS CountOfRID, "V004C" AS query_version FROM (SELECT GetGroupIDNameCourseType(tblcourse.Course,tblmain.stypeid) AS GroupID,[Course] AS CourseGroup, tblSType.SType, iif( NZ([tblMain].[CCon],False)=True,-1,tblmain.rid) as ccongroup, sum( iif( NZ([tblMain].[CCon],False)=True,0,1)) + max( iif( NZ([tblMain].[CCon],False)=True,1,0)) AS CountOfRID, tblmain.groupid as individual_groupid FROM ((tblMain INNER JOIN tblCourse ON tblMain.CourseID = tblCourse.CourseID) inner join tblSType on tblSType.STypeID = tblmain.STypeid) WHERE tblMain.Appdate >=[forms]![frmReportDateRange]![BeginDate] And tblMain.Appdate<=[forms]![frmReportDateRange]![EndDate] GROUP BY GetGroupIDNameCourseType(tblcourse.Course,tblmain.stypeid),[Course], tblSType.SType, iif( NZ([tblMain].[CCon],False)=True,-1,tblmain.rid), tblmain.groupid ) AS SUBQ GROUP BY SUBQ.GroupID, SUBQ.CourseGroup, SUBQ.stype;
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE