Results 1 to 2 of 2
  1. #1
    hamish mather is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2011
    Posts
    6

    calculate rate * hours worked

    Please Can Someone help me

    I have the folowing fields StartTime, EndTime, HourlyRate, in a table
    HoursWorked: Format([StartTime]-1-[EndTime],"Short Time")

    So Know I need HourlyRate*HoursWorked gives me error

    StartTime 23:00 EndTime 10:00 = 12hours worked

    PayAmount: Round(CCur(Nz(DateDiff("n",[StartTime],[EndTime])*[HourlyRate]/60,0)),2) this works but gives negative value

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    Reverse start time & end time. Bet you have already fixed it.

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

Similar Threads

  1. Sum hours worked, grouped by dep't
    By goodfood in forum Queries
    Replies: 3
    Last Post: 05-05-2011, 06:11 AM
  2. Replies: 1
    Last Post: 03-22-2011, 07:01 PM
  3. Rate my schema
    By Hypotenuse in forum Database Design
    Replies: 7
    Last Post: 01-29-2011, 01:20 PM
  4. Access 2010 fails where 2007 worked
    By dick in forum Access
    Replies: 3
    Last Post: 10-16-2010, 01:20 AM
  5. How to calculate duration in hours & minutes
    By joypanattil in forum Access
    Replies: 0
    Last Post: 11-25-2009, 04:49 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