Solved

totaling clock in and clock out hours in form

Posted on 2011-09-13
3
197 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

691 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