Results 1 to 4 of 4
  1. #1
    googalabosh is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    48

    Calculating in a report


    I have a database that tracks the cars I fix. I want a report to display the average number of days it takes to complete a car.

    The table has two columns which have an "In" date and "Out" date. I need to calculate the number of days it takes from when a car comes in to when it goes out. I then need to calculate the average number of days it takes to get a car out. Finally, I need this number to show on a report (only the average days number).

    How can I do this?

    TIA!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Try to do all your calculations In the query,
    DateDiff("d",[startDate],[EndDate])

  3. #3
    googalabosh is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    48
    Thank you. Now, how do I get the average number of days to show on a report?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Try a textbox in the report footer with

    =Avg(FieldName)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Calculating Percent in Report
    By pipoconanan45 in forum Reports
    Replies: 5
    Last Post: 09-08-2015, 10:47 PM
  2. Calculating totals in a report
    By LaughingBull in forum Access
    Replies: 1
    Last Post: 07-25-2015, 09:33 AM
  3. Calculating Total on the report
    By Natella in forum Reports
    Replies: 5
    Last Post: 11-12-2013, 11:08 AM
  4. Replies: 5
    Last Post: 12-08-2012, 10:10 PM
  5. Calculating a sum on a report
    By missourijc in forum Reports
    Replies: 0
    Last Post: 10-30-2008, 07:21 PM

Tags for this Thread

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