Show an Employee with no reviews

T

Tina S

I have a table with a list of all employees. I have another table that shows
the reviews done on the employees.

I have a crosstab query to show me how many reviews were completed on each
employee each quarter and then the total for the year.

The problem I have is there are employees who have no reviews completed and
they are not showing up in the table. I need to show them because they
should have had reviews and I need to show they have had none.

I joined the table and took the employee name from the employee table and
did a join to show all the employees on the employee table, but if there are
no reviews they are not showing.
 
J

Jerry Whittle

In the query design view double click on the line between the two tables.
When the dialog box appears, select the second option.
 
T

Tina S

Tjis is whatI ave already done and it is still not working.
it says,
"Include ALL records from 'ALL_EMP' and only those records from
'Comp_Rev' where the join fields are equal.
 
M

Marshall Barton

Tina said:
I have a table with a list of all employees. I have another table that shows
the reviews done on the employees.

I have a crosstab query to show me how many reviews were completed on each
employee each quarter and then the total for the year.

The problem I have is there are employees who have no reviews completed and
they are not showing up in the table. I need to show them because they
should have had reviews and I need to show they have had none.

I joined the table and took the employee name from the employee table and
did a join to show all the employees on the employee table, but if there are
no reviews they are not showing.


You need to use an outer join. In the query designer,
select the line between the two tables. The right click the
line and change the join type to the one that selects all
records from the employee table and any matching records
from the reviews table.
 
T

Tina S

I already did this and it is still not working.
it says,
"Include ALL records from 'ALL_EMP' and only those records from
'Comp_Rev' where the join fields are equal.
 
K

KARL DEWEY

Post the SQL of your query by opening in design view, clicking on VIEW - SQL
View, highlight all ,copy, and paste in a post.
 
J

Jerry Whittle

It's the crosstab. Without data, there's nothing to tranform.

Try creating a regular select query, with the same kind of join, and using
something like the NZ function to return a 0 instead of a null. Then use that
query as the record source for the crosstab query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top