Results 1 to 3 of 3
  1. #1
    Keefay78 is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    May 2019
    Posts
    36

    Question Calculated field in query or report output


    Hi folks, I am trying to create a report with hours worked, I created a query to select the staff member and the job and has calculated the hours worked, now I would like to get a total for that person.

    I have tried calculating fields in a query but I get no output, I think i must be close but not close enough, I tried creating a field within the query (called it adjustment) to sum the OpHours field in the query but it just displays the same output as OpHours when I need the total of that field, I am getting errors with my textbox for the output on the report

    Click image for larger version. 

Name:	cap1a.JPG 
Views:	6 
Size:	33.2 KB 
ID:	38518

    I am at my wits end, up until now I have managed to get this far but I am completely stuck, any help would be greatly appreciated

  2. #2
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    You probably need to create a group by Query. Here is a link on how that works.

    https://www.techonthenet.com/sql/group_by.php

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,806
    Did you turn on "sorting and grouping" in design view? Could be as simple as performing a sum over group. I prefer to do such calculations using report options when possible.

    Click image for larger version. 

Name:	rptSandG.jpg 
Views:	3 
Size:	46.1 KB 
ID:	38522
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 5
    Last Post: 02-19-2017, 03:19 PM
  2. Changing a text field output for a report.
    By Thompyt in forum Programming
    Replies: 12
    Last Post: 12-10-2014, 04:01 PM
  3. Replies: 4
    Last Post: 04-23-2014, 04:35 PM
  4. Replies: 2
    Last Post: 10-15-2013, 02:14 PM
  5. Replies: 1
    Last Post: 04-21-2013, 03:20 PM

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