as a quite a newbie in Access, and couldn't find a similar question in this forum, (if I overlooked it , my apologizes for that, as English is not my mother tongue)
I have a table(T_REPORTS) filled in by a form : an administrator fills in which employees have delivered different kind of reports on a specific date.
used table look like :
T_REPORTS
UIN (unique Indentifier Number - Autonumber)
PIN (Person Identifier Number - 8 char text // example : ZG813VRD)
DateR (date Report - date time)
TypeR (Type Report - 2 char text : Example TB, WI, NA, OH, NM)
T_EMPLOYEES
PIN (Person Identifier Number - 8 char text, in this table unique)
1Name (1st name - 16 chars text)
Fname (family name - 24 char text)
a employee can/ may enter more than 1 report of a specific type per month.
now I have an query which results the employees who have delivered a report,
the result of ACCESS query below shows entered reports per month, (of entered Year) and also total of reports per employee
though employees who didn't delivered a report at all are not shown.
I need an overview of all employees despite the fact if reports where filed in or not, and if result field is empty a zero should be shown
TRANSFORM Count(T_REPORTS.TypeR) AS CountOfRTS_a
SELECT [Fname] & ", " & [1Name] AS CName, Count(T_REPORTS.PIN) AS [total of PIN]
FROM T_EMPLOYEES RIGHT JOIN T_REPORTS ON T_EMPLOYEES.PIN = T_REPORTS.PIN
WHERE (((Year([DateR]))=[enter Year (4 digits)]))
GROUP BY [Fname] & ", " & [1Name]
ORDER BY [Fname] & ", " & [1Name]
PIVOT Format([DateR],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
anybody who can help me with this (for me) nasty problem..
thanks in advance
John
I have a table(T_REPORTS) filled in by a form : an administrator fills in which employees have delivered different kind of reports on a specific date.
used table look like :
T_REPORTS
UIN (unique Indentifier Number - Autonumber)
PIN (Person Identifier Number - 8 char text // example : ZG813VRD)
DateR (date Report - date time)
TypeR (Type Report - 2 char text : Example TB, WI, NA, OH, NM)
T_EMPLOYEES
PIN (Person Identifier Number - 8 char text, in this table unique)
1Name (1st name - 16 chars text)
Fname (family name - 24 char text)
a employee can/ may enter more than 1 report of a specific type per month.
now I have an query which results the employees who have delivered a report,
the result of ACCESS query below shows entered reports per month, (of entered Year) and also total of reports per employee
though employees who didn't delivered a report at all are not shown.
I need an overview of all employees despite the fact if reports where filed in or not, and if result field is empty a zero should be shown
TRANSFORM Count(T_REPORTS.TypeR) AS CountOfRTS_a
SELECT [Fname] & ", " & [1Name] AS CName, Count(T_REPORTS.PIN) AS [total of PIN]
FROM T_EMPLOYEES RIGHT JOIN T_REPORTS ON T_EMPLOYEES.PIN = T_REPORTS.PIN
WHERE (((Year([DateR]))=[enter Year (4 digits)]))
GROUP BY [Fname] & ", " & [1Name]
ORDER BY [Fname] & ", " & [1Name]
PIVOT Format([DateR],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
anybody who can help me with this (for me) nasty problem..
thanks in advance
John