Solved

time calculation on form

Posted on 2011-09-19
3
276 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

Independent Software Vendors: 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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

685 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