thierry.drouet
New member
- Local time
- Today, 13:53
- Joined
- Oct 23, 2006
- Messages
- 8
Hi everybody,
Let's say that I've got the following tables (Access 2003):
- tblCustomers(IDCust,NameCust)
- tblEmployees(IDEmpl,NameEmpl)
- tblProjects(IDProj,IDCust,IDEmpl,Duration)
What I've achieved to do is a report which lists:
- the Customers (NameCust Header)
-- then,the Employees who had Projects for this Customer (NameEmp Header)
--- then, the Projects of this Employee, for this Customer (Detail)
My problem is that I can't manage to sort the EmployeeS,
based on the "Employee Total Duration" which is a calculated field (=Sum([duration])) in the NameEmp Header
The report Record Source is:
SELECT tblCustomers.NameCust, tblProjects.IDProj, tblProjects.Duration, tblEmployees.NameEmpl
FROM (tblProjects INNER JOIN tblEmployees ON tblProjects.IDEmpl = tblEmployees.IDEmpl) INNER JOIN tblCustomers ON tblProjects.IDCust = tblCustomers.IDCust
ORDER BY tblCustomers.NameCust;
Could someone help me?
I've enclosed "SortingProblemWithinReport.mdb" (converted in Access 2000 format) as an easy way to see what I'm talking about... and can be used to provide a solution
Thanks in advance
Thierry
Let's say that I've got the following tables (Access 2003):
- tblCustomers(IDCust,NameCust)
- tblEmployees(IDEmpl,NameEmpl)
- tblProjects(IDProj,IDCust,IDEmpl,Duration)
What I've achieved to do is a report which lists:
- the Customers (NameCust Header)
-- then,the Employees who had Projects for this Customer (NameEmp Header)
--- then, the Projects of this Employee, for this Customer (Detail)
My problem is that I can't manage to sort the EmployeeS,
based on the "Employee Total Duration" which is a calculated field (=Sum([duration])) in the NameEmp Header
The report Record Source is:
SELECT tblCustomers.NameCust, tblProjects.IDProj, tblProjects.Duration, tblEmployees.NameEmpl
FROM (tblProjects INNER JOIN tblEmployees ON tblProjects.IDEmpl = tblEmployees.IDEmpl) INNER JOIN tblCustomers ON tblProjects.IDCust = tblCustomers.IDCust
ORDER BY tblCustomers.NameCust;
Could someone help me?
I've enclosed "SortingProblemWithinReport.mdb" (converted in Access 2000 format) as an easy way to see what I'm talking about... and can be used to provide a solution
Thanks in advance
Thierry
Attachments
Last edited: