RE: Should be simple but...
- From: Duane Hookom <duanehookom@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 3 Jan 2009 14:44:00 -0800
I would confirm the phonetype values and just check your data. The query
looks fine. What section of the report are you displaying the data?
--
Duane Hookom
Microsoft Access MVP
"Aria" wrote:
Hello,.
This should be simple but maybe I'm missing something easy. I have multiple
versions of phone directory reports for our school. I am not experiencing
problems with the mobile/cell phone directory nor the reverse directory by
location. So far, it list everyone as it should.
I seem to be having a slight problem with the staff directory. It is sorted
by last name, first name and then phone location. There can be multiple staff
members assigned to a location phone. I have one location that lists 6 staff
members to a phone. No problem here. My problem is the office phone. There
are 3 staff employees assigned to the office phone as well as their direct
line phones. The report list 2 of the staff members for the office phone and
only one for the direct/desk phone. All 3 staff employees should be listed
for the office phone as well as 3 seperate entries for direct lines. Thank
you for any ideas or suggestions.
Here's the SQL:
SELECT tblPhonesEmps.PhoneID, tblPhonesEmps.EmpID, tblEmployees.LastName,
tblEmployees.FirstName, tblPhones.PhoneNumber, tblPhones.PhoneDescription,
tblPhones.PhoneType
FROM tblPhones INNER JOIN (tblEmployees INNER JOIN tblPhonesEmps ON
tblEmployees.EmpID = tblPhonesEmps.EmpID) ON tblPhones.PhoneID =
tblPhonesEmps.PhoneID
WHERE (((tblPhones.PhoneType)=2))
ORDER BY tblEmployees.LastName, tblEmployees.FirstName;
--
Aria W.
- Follow-Ups:
- RE: Should be simple but...
- From: Aria
- RE: Should be simple but...
- References:
- Should be simple but...
- From: Aria
- Should be simple but...
- Prev by Date: Re: Is there a bracket (financial) format?
- Next by Date: Re: How do I detach a label from a text box in 2007?
- Previous by thread: Should be simple but...
- Next by thread: RE: Should be simple but...
- Index(es):
Relevant Pages
|