Solved

# totaling clock in and clock out hours in form

Posted on 2011-09-13
195 Views
hello,
i have attached db- open it and you will see a form.
there is a time for monday in and monday out, tuesday in and tuesday out, and wednesday in and wednesday out.
I have 3 txtboxes to the right-
Is it possible to have total of hours display-( total minus 30 minutes)-

example for monday- 8.00 would display in monday textbox
thank you--
TimeInTimeOut.mdb
0
Question by:davetough

LVL 120

Accepted Solution

Rey Obrero (Capricorn1) earned 500 total points
ID: 36530179
you can compute the diff with

Me.txtMonday = DateAdd("n", -30, DateDiff("h", Me.txtMonIN, Me.txtmMonOUT))

just not sure why you need this,
you can always use a query to compute the total time
0

LVL 44

Expert Comment

ID: 36530337
I suggest your table design is not correct.  Rather than have In and Out datetimes for each day of the week, you should have the ID, DTIn, and DTOut, as well as job description.  Thus table contains a minimum of 10 records per employee per week.  Let the form then 'figure out'  what day of the week it is as well as the hours worked per day and the total per week.
0

Author Closing Comment

ID: 36530380
i have a form for each person - bound to their own table- at the end of week - they hit a submit button and data goes into another table- and form is ready to use again for the next week- this helps me - because I need to lock users out of inputing their own regular hours- ( they can input everything else) -
i will have two button for in and out for each day - thank s
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…