Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

time difference

Discussion in 'Information Technology' started by Ab, Jul 28, 2006.

  1. Ab

    Ab
    Expand Collapse
    Guest

    I have made a table having a field- clockIntime and another field
    ClockOutTime --I need to know the difference between the clock in and clock
    out time in my query or report.
    Please reply ASAP
     
  2. Loading...

    Similar Threads Forum Date
    Difference between us and the Gurus? Sikh Sikhi Sikhism Dec 25, 2014
    Hinduism Difference between Sikhi and Bhakti Hinduism Interfaith Dialogues Mar 5, 2014
    Islam Difference in Bowing head in front of Guru Granth Sahib and Idol Worship Interfaith Dialogues Jun 16, 2013
    Islam What Is Difference Between Sikhism And Islam - Dr. Zakir naik Interfaith Dialogues Jun 16, 2013
    Inspirational Making a Difference: A School for Girls in Kenya Videos Mar 25, 2013

  3. Michael H

    Michael H
    Expand Collapse
    Guest

    Hi.

    Use the DateDiff function to calculate seconds. You can then use that value
    to calculate exact minutes, hours, days, etc.

    You may also want to have a look at the Diff2Dates function located here:
    http://www.accessmvp.com/djsteele/Diff2Dates.html

    -Michael


    "Ab" wrote:

    > I have made a table having a field- clockIntime and another field
    > ClockOutTime --I need to know the difference between the clock in and clock
    > out time in my query or report.
    > Please reply ASAP
     
  4. Rick B

    Rick B
    Expand Collapse
    Guest

    =(DateDiff("n",[StartTime],[StopTime]))\60 &
    Format((DateDiff("n",[StartTime],[StopTime])) Mod 60,"\:00")
    This will show it as...
    HH:MM



    You can do it as just minutes if you'd prefer...
    =DateDiff("n",[StartTime],[StopTime])




    --
    Rick B



    "Ab" <Ab@discussions.microsoft.com> wrote in message
    news:1E761490-6BF7-468C-BA54-ED4408FE4DB4@microsoft.com...
    >I have made a table having a field- clockIntime and another field
    > ClockOutTime --I need to know the difference between the clock in and
    > clock
    > out time in my query or report.
    > Please reply ASAP
     

Share This Page