Go day all,
I’ve a problem with a report that is based on the crosstab query below.
The purpose of this query is to show the listed below items for all the courses plus to break down the status showing its total individually :
1-Session ID
2-Course Title
3-Course Type
4-Start Date
5-End Date
6-Location
7-Seats
8-Available Seats
9-Status ( In-Progress, Complete, Cancel and No show).
Here is the problem:
When I open up the query itself, it works fine; it shows the following:
(1)-7 (2)-Fire Course (3)-In-House (4)-11/11/2010 (5)-11/15/2010 (6)-London (7)-20 (8)-19 (9)-1 *
•The total of the enrolled employees who have In-Progress status is 1.
However, when I go to the report itself I got an error message saying “the Ms access database engine does not recognize "Cancel" as a valid name or expression.
My query:
I’d greatly appreciate any feedback to overcome this problme ?
I’ve a problem with a report that is based on the crosstab query below.
The purpose of this query is to show the listed below items for all the courses plus to break down the status showing its total individually :
1-Session ID
2-Course Title
3-Course Type
4-Start Date
5-End Date
6-Location
7-Seats
8-Available Seats
9-Status ( In-Progress, Complete, Cancel and No show).
Here is the problem:
When I open up the query itself, it works fine; it shows the following:
(1)-7 (2)-Fire Course (3)-In-House (4)-11/11/2010 (5)-11/15/2010 (6)-London (7)-20 (8)-19 (9)-1 *
•The total of the enrolled employees who have In-Progress status is 1.
However, when I go to the report itself I got an error message saying “the Ms access database engine does not recognize "Cancel" as a valid name or expression.
My query:
Code:
TRANSFORM Count(enrollment.[Employee ID]) AS [CountOfEmployee ID] SELECT Sessions.[Session ID], Courses.[Course Title], Courses.[Course Type], Sessions.[Start Date], Sessions.Location, Sessions.Seats, Sessions.AvailableSeats, Sessions.[End Date] FROM Courses INNER JOIN (Sessions INNER JOIN enrollment ON Sessions.[Session ID]=enrollment.[Session ID]) ON Courses.[Course ID]=Sessions.[Course ID] GROUP BY Sessions.[Session ID], Courses.[Course Title], Courses.[Course Type], Sessions.[Start Date], Sessions.Location, Sessions.Seats, Sessions.AvailableSeats, Sessions.[End Date] PIVOT enrollment.Status;
Comment