I want to use the DateDiff function to work out the time interval between a start time (e.g.10am) and an end time (e.g. 10.35) in a race.
Can anyone help?
I seem to have cracked this by setting up a SwimTotal field in the Selection table with a Data Type, Number/Long Integer. Then I set up an Update query as follows:
Field: SwimTotal
Table: tblSlection
Update to: DateDiff("s",[SwimStart],[SwimEnd])
This calculates the time in seconds (s). You will then have to divide this by 60 in an expression which you can put in a query if you wish, or on the form or in a report later (maybe all three). In a Triathlon you will need to do this for each race and then use an expression to add the three totals together in an Overall total field. Looks like fun!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.