accessnovice1000
New member
- Local time
- Today, 00:11
- Joined
- May 18, 2016
- Messages
- 4
Dear Everybody,
I created a database to keep track of my internship hours. I have a form with “date” “time in” “time out” and “details of internship” fields.
I set up a query to calculate the number of minutes I had spent at the internship site using this code:
[FONT="]Minutes: DateDiff("n", [TIMEIN], [TIMEOUT])[/FONT]
Then, I used this code to convert the total minutes into hours and minutes:
=[TIME] \ 60 & Format([TIME] Mod 60, "\:00")
Now, on my report, I have a separate line for each time I checked into the internship. On the report I see:
Date / Time In / Time Out / Details / Total Minutes / Hours:minutes
The second line of code makes the total time show up as “1:30” to symbolize 1 hour and 30 minutes.
THIS IS WHAT I NEED
I need one line item at the bottom of the report to calculate all of the times… for example, if I worked
MONDAY 1:30
TUES :30
WED :30
THURS 1:00
FRI :30
… then I need a field at the bottom of the report to show that all these values equal a total of 4:00 (4 hours)
How to do this please? I have no idea if I explained this properly, but I did attach the database I created. Please don't laugh. It's very basic.
I'm very grateful for all your help, in advance.
Thank you.
I created a database to keep track of my internship hours. I have a form with “date” “time in” “time out” and “details of internship” fields.
I set up a query to calculate the number of minutes I had spent at the internship site using this code:
[FONT="]Minutes: DateDiff("n", [TIMEIN], [TIMEOUT])[/FONT]
Then, I used this code to convert the total minutes into hours and minutes:
=[TIME] \ 60 & Format([TIME] Mod 60, "\:00")
Now, on my report, I have a separate line for each time I checked into the internship. On the report I see:
Date / Time In / Time Out / Details / Total Minutes / Hours:minutes
The second line of code makes the total time show up as “1:30” to symbolize 1 hour and 30 minutes.
THIS IS WHAT I NEED
I need one line item at the bottom of the report to calculate all of the times… for example, if I worked
MONDAY 1:30
TUES :30
WED :30
THURS 1:00
FRI :30
… then I need a field at the bottom of the report to show that all these values equal a total of 4:00 (4 hours)
How to do this please? I have no idea if I explained this properly, but I did attach the database I created. Please don't laugh. It's very basic.
I'm very grateful for all your help, in advance.
Thank you.
Attachments
Last edited: