Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Report

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I am trying to create a simple report with 2 tables. tblEmpInfo and tblsurvey. They are joined with employeename. If the persons name is in tblEmpInfo and not tblsurvey the person is not shown. I would like to be able to show all employee names with a 0 (zero) next to the names that do not have an entry in tblsurvey.

This seems very simple to me but I just cannot seem to get it to work. Any suggestions?

Thanks in advance

Paul
 
In the Database Expert, double click on the join and then select Left Outer (making sure that tblEmpInfo is on the left side in the table diagram).

That will give you one or more records for every employee, regardless of whether or not they have a record in the survey table.

Employees that don't have a survey will have a null value - if you want to display a 0 then you'll need to write a simple formula, post back if you get to that point.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top