1. I have made a crosstab query based on the following tables.
Employee table:
[Employee #]
[Name]
Availability table:
[Employee #]
[Date available]
The tables are left joined on the [Employee #] field, and the results are like the following if the criteria (From date, To date) include all records in the Availability table.
[Name][<>][1][2][3][4][5][6][7]
Tom | | - | - | - | - | 1 | 1 | 1 |
Dick | 0 | - | - | - | - | - | - | - |
Harry | | - | 1 | 1 | 1 | - | - | - |
However, if I specify a range of dates, employees who have no records in the Availability table for those dates are not included, as follows.
[Name][2][3][4][5][6]
Tom | - | - | - | 1 | 1 |
Harry | 1 | 1 | 1 | - | - |
How can I make the query include all employees, and without the "<>" column containing zeros for employees who have no records in the Availability table, as follows?
[Name][2][3][4][5][6]
Tom | - | - | - | 1 | 1 |
Dick | - | - | - | - | - |
Harry | 1 | 1 | 1 | - | - |





