G
Guest
I have a report based on a crosstab query (SQL below). My problem is that I
do not want my report to show fields (which are employees) when the employee
has no time, meaning when the field is null. When I remove the employee from
the column heading properties of the query, I am prompted for that employee
when I run the report (if the employee does have time). In summary, I am
wanting the employee to show up as a field heading when the employee does
have time, but not show up when the employee does not have time (when field
is null). Any help would be greatly appreciated.
PARAMETERS [Start Date? MM/DD/YY] DateTime, [End Date? MM/DD/YY] DateTime;
TRANSFORM Sum(TblTime.Hours) AS SumOfHours
SELECT TblTime.Date, Sum(TblTime.Hours) AS [Total Of Hours]
FROM TblTime
WHERE (((TblTime.Date) Between [Start Date? MM/DD/YY] And [End Date?
MM/DD/YY]))
GROUP BY TblTime.Date
PIVOT TblTime.Employee In ("AMS","DEA","LB","LVA","MLM","WFC");
do not want my report to show fields (which are employees) when the employee
has no time, meaning when the field is null. When I remove the employee from
the column heading properties of the query, I am prompted for that employee
when I run the report (if the employee does have time). In summary, I am
wanting the employee to show up as a field heading when the employee does
have time, but not show up when the employee does not have time (when field
is null). Any help would be greatly appreciated.
PARAMETERS [Start Date? MM/DD/YY] DateTime, [End Date? MM/DD/YY] DateTime;
TRANSFORM Sum(TblTime.Hours) AS SumOfHours
SELECT TblTime.Date, Sum(TblTime.Hours) AS [Total Of Hours]
FROM TblTime
WHERE (((TblTime.Date) Between [Start Date? MM/DD/YY] And [End Date?
MM/DD/YY]))
GROUP BY TblTime.Date
PIVOT TblTime.Employee In ("AMS","DEA","LB","LVA","MLM","WFC");