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
Solved

time calculation on form

Posted on 2011-09-19
3
268 Views
Last Modified: 2012-05-12
i have attached sample db- open and a form comes up-
in is 8:00 am
out is 11:00 am
when you hit calculate button now it displays 3 - for hours between in and out-
If you look at calculate button code- you see i have 30 minutes being subtracted.
( if i have written code correctly)
Is there a way to display the decimal values in monday text button?
right now it displays 3
i want it to display 2.50
thank you
test20.mdb
0
Comment
Question by:davetough
  • 2
3 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36561761
test this
test20Rev.mdb
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 36561869
you have to use Single for the Field size of field Dmonday in the design view of your table
and use this calculation
Me.txtMonday = (DateDiff("n", Me.txtMonIN, Me.txtmMonOUT) - 30) / 60
0
 

Author Closing Comment

by:davetough
ID: 36561980
Thanks for solution and explanation
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

837 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