Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Calling all Access experts...

Thread Tools
 
Search this Thread
 
Old 10 November 2003, 09:54 AM
  #1  
adpd
Scooby Regular
Thread Starter
 
adpd's Avatar
 
Join Date: Sep 2003
Posts: 395
Likes: 0
Received 0 Likes on 0 Posts
Question

I am a little rusty with the old Access 2000 (to say the least).

I am trying to write a query that, between a user defined date range, will display a list of projects (by project code) and the employees who have been working on that project (showing the time that they have worked on that project and the billable amount that has been accumulated).

The problem is that for each project, there are multiple instances of employees - I need to sum their time together and display it once for each project.

If anybody has any idea how to help me, please let me know.

If you need anymore information, please ask.

Thanks in advance.

Old 10 November 2003, 10:56 AM
  #2  
SJ_Skyline
Scooby Senior
 
SJ_Skyline's Avatar
 
Join Date: Apr 2002
Location: Limbo
Posts: 21,922
Likes: 0
Received 1 Like on 1 Post
Smile

Well as a starter I would grab and group the data from the employees table:

SELECT intProjectID, sum(intBillableTime)
FROM tblEmployees
GROUP BY intProjectID

Then link this subquery through to your projects table performing a join on intProjectID

Sorry - monday morning, my brain is not up to speed yet!
Old 10 November 2003, 11:30 AM
  #3  
adpd
Scooby Regular
Thread Starter
 
adpd's Avatar
 
Join Date: Sep 2003
Posts: 395
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

SJ_Skyline, I appreciate all the help.

I will give it a go.
Old 10 November 2003, 12:33 PM
  #4  
ChrisB
Moderator
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

To do it in a report:

Add a Group Footer to a report, grouping on the Project ID (done through the Sorting & Grouping box (on the View Menu)). Leave it set to Group On "Each Value"

In there you can put a Calculated Control which sums up the time field for that project.

Each project ID will have it's own instance of the footer and hence control with the total time.

HTH,

Chris.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
TylerD529
General Technical
2
09 October 2015 01:53 AM
Littleted
Computer & Technology Related
4
25 September 2015 09:55 PM



Quick Reply: Calling all Access experts...



All times are GMT +1. The time now is 05:49 AM.