Results 1 to 5 of 5
  1. #1
    kcmiuser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    26

    Multiplying hours by a dollar value to get a total


    On a small project, I am tracking elapsed time for projects, I had everything functioning well and delivered the report. Now I have it back and the person who wanted it wants to add cost, my issues is multiplying the hourly rate times the elapsed time (hours:minutes), the question is can I do this directly on a detail line in the master report? I am not very well-versed in creating functions like this.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Build a query, bring down the fields you need, then add a calculated field by entering the fields in a blank column:
    [ElapsedTime]*[rate]

    you can rename the label in front of the calculation colon
    Cost: [ElapsedTime]*[rate]

  3. #3
    kcmiuser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    26
    Quote Originally Posted by ranman256 View Post
    Build a query, bring down the fields you need, then add a calculated field by entering the fields in a blank column:
    [ElapsedTime]*[rate]

    you can rename the label in front of the calculation colon
    Cost: [ElapsedTime]*[rate]
    I see I need to clarify this a bit more. I am getting the fields for the report from a make table query which has the elapsed time in calculated filed, but it is in minutes. On the report, I am converting the minutes to hours:minutes using a text field with this function - =[Minutes]\60 & Format([Minutes] Mod 60,"\:00"). should I have done this in the query in order to be able to add costing?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Yes, but you should never put calculated fields in a table. They should always be 'calculated' live in a query. ( But you can do it in the make table too. )

  5. #5
    kcmiuser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    26
    Quote Originally Posted by ranman256 View Post
    Yes, but you should never put calculated fields in a table. They should always be 'calculated' live in a query. ( But you can do it in the make table too. )
    OK, thanks. Now, I have the elapsed time field in the query as minutes and I have the field with the per hour cost in the same query, how would I create a calculated field that would give me the correct amount for the minutes worked, I am unsure how to multiply an elapsed time field (minutes) by a rate (hourly). do change the minutes to hh:mm or change the value of rate to per minute? Very unsure.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-08-2012, 01:42 PM
  2. Replies: 4
    Last Post: 08-06-2012, 10:25 AM
  3. Overall Total of Hours & Minutes in Report
    By StevenCV in forum Reports
    Replies: 1
    Last Post: 02-27-2012, 10:48 AM
  4. Replies: 2
    Last Post: 03-02-2011, 01:43 PM
  5. Replies: 8
    Last Post: 05-24-2010, 04:24 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