Results 1 to 3 of 3
  1. #1
    wnicole is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    118

    date range instead list of dates

    I have list of expenses. I'm running a report to show total number of hours per workers. The report is giving me each date and sum at bottom.
    What I need is to see total of hours however, just the date range that worker worked on a particular project.

    Ex:
    Name Project Date Range Total Hrs

    Date Range is based on the dates already entered in database for each expense.


    Can you help me? Currently my query is pulling report by project number and I wish to see each person that worked on project total hours by Date Range.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Its a multi step process. Query1 is a standard select query where you enter your date range criteria (probably called from a form's text boxes) i.e. >= #1/1/2013# and <= #12/31/2013#

    This results in a stack of rows. Then you make Query2 using Query1 as the table, don't include the date field, make the query an Aggregate Query that will group by the text fields and sum the hours field.

    This should give the raw results you need - the final part then is presenting in a report and include the date range.

  3. #3
    wnicole is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    118
    I don't knw if u understood :-) this is one "date of job" field so there is no range. In the report I'm hoping to create a "start and end " range based on that one date field to show how long person worked on given project.

    I think I found a solution. In the query I add date field twice. On one i chose "first" in the other I chose "last"
    When I pull up query it seemed to work. But I notice on some line items last is first. Not sure why? Any ideas?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Query list of clients in date range
    By scorpiogray in forum Queries
    Replies: 2
    Last Post: 05-20-2013, 01:34 PM
  2. Query input dates for range of dates in two fields
    By kagoodwin13 in forum Queries
    Replies: 3
    Last Post: 02-13-2012, 04:25 PM
  3. Replies: 13
    Last Post: 09-27-2010, 03:10 PM
  4. Replies: 3
    Last Post: 09-29-2009, 07:08 AM
  5. Count Dates within Date Range
    By eckert1961 in forum Queries
    Replies: 2
    Last Post: 03-08-2009, 10:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums