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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confused on query definition for report generation

Status
Not open for further replies.

SherWat

Technical User
Feb 12, 2016
216
CA
I have a table that has Division, Unit, Assigned to, Rank, cell number

Not all entries have a rank - for example a shared vehicle cell phone.

I want to create a report that shows all the cell phones, but listed in rank order.

Below is how the query is currently built.

SELECT Employees.[Assigned To], Employees.Division, Employees.Unit, Employees.[Mobile number], Employees.[Print on Report], Ranks.Rank, Ranks.[Rank Order]
FROM Employees INNER JOIN Ranks ON Employees.Rank = Ranks.Rank
WHERE (((Employees.[Print on Report])=Yes));


When it is run, it only shows records that have a rank - it does not show records that do not have a rank (i.e. the shared cell phones).

How can I generate a report that shows all the cell phones whether or not they have a rank.

Thank you.
 
You need to double-click the join line between Employees and Ranks and set the option to include all records from the Employees table.

Duane
Vevey, Switzerland
Hook'D on Access
MS Access MVP 2001-2016
 
Amazing what one little tick box can do!:)
Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top