G
Guest
I am developing training material to teach how to use crosstab query wizard.
My example is to show how many employees were hired each year for each
department. I chose department name for row headings and "Hire date" for
column headings and selected "year" for the interval and directed it to count
employee ID numbers in each department per month. When I complete the wizard,
I get a message box saying that I have an undefined function "format" in
expression.
My expression is Format([HireDate],"yyyy")
My SQL statement is:
TRANSFORM Count(tblEmployees.EmployeeID) AS CountOfEmployeeID
SELECT tblEmployees.DepartmentName, Count(tblEmployees.EmployeeID) AS [Total
Of EmployeeID]
FROM tblEmployees
GROUP BY tblEmployees.DepartmentName
PIVOT Format([HireDate],"yyyy");
What is my problem? This is driving me nuts! Thanks for any help you can
offer.
My example is to show how many employees were hired each year for each
department. I chose department name for row headings and "Hire date" for
column headings and selected "year" for the interval and directed it to count
employee ID numbers in each department per month. When I complete the wizard,
I get a message box saying that I have an undefined function "format" in
expression.
My expression is Format([HireDate],"yyyy")
My SQL statement is:
TRANSFORM Count(tblEmployees.EmployeeID) AS CountOfEmployeeID
SELECT tblEmployees.DepartmentName, Count(tblEmployees.EmployeeID) AS [Total
Of EmployeeID]
FROM tblEmployees
GROUP BY tblEmployees.DepartmentName
PIVOT Format([HireDate],"yyyy");
What is my problem? This is driving me nuts! Thanks for any help you can
offer.