Solved

totaling clock in and clock out hours in form

Posted on 2011-09-13
3
196 Views
Last Modified: 2012-05-12
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
Comment
Question by:davetough
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 120

Accepted Solution

by:
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

by:GRayL
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

by:davetough
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question