473,748 Members | 6,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Report Calculations

23 New Member
I just want to see if I am thinking about this correctly. I have a report that shows Time In, Time Out, And Total Time Seen. I have a text box down at the bottom that adds the Time Seen column on the report. I then formated the text box hh:nn to give me total hours and min spent with customers. All goes well until the time adds up to more then 24 hours. If I format the text box to dd:hh:nn it gives me one day less then if I add the times up on my own.
Exp. 76 hours 4 min should give me 3 days 4 hours and 4 min. It is giving me 2 days 4 hours 4 min. Unformatted it gives me 3.1694444444444 4. I am guessing that access is using the 3 for the number of days. Is access starting with 0 when it counts the days.
Exp. 0 = first 24 hours
1 = second 24 hours
2 = third 24 hours
I just want to make sure that I am thinking about this correctly.
I got it to give me the correct answer when I set the control source as follows.
=([txtTotalTime]+1])
Oct 29 '08 #1
1 1642
DonRayner
489 Recognized Expert Contributor
I just want to see if I am thinking about this correctly. I have a report that shows Time In, Time Out, And Total Time Seen. I have a text box down at the bottom that adds the Time Seen column on the report. I then formated the text box hh:nn to give me total hours and min spent with customers. All goes well until the time adds up to more then 24 hours. If I format the text box to dd:hh:nn it gives me one day less then if I add the times up on my own.
Exp. 76 hours 4 min should give me 3 days 4 hours and 4 min. It is giving me 2 days 4 hours 4 min. Unformatted it gives me 3.1694444444444 4. I am guessing that access is using the 3 for the number of days. Is access starting with 0 when it counts the days.
Exp. 0 = first 24 hours
1 = second 24 hours
2 = third 24 hours
I just want to make sure that I am thinking about this correctly.
I got it to give me the correct answer when I set the control source as follows.
=([txtTotalTime]+1])
The unformated result is = (76.066666666 hours / 24). The 4 min has been converted to 10ths of hours.

Hope this helps.
Don
Oct 30 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
2688
by: MacDermott | last post by:
I have an Access MDB which instantiates a class in a custom DLL, manipulates it for a while, then sets it equal nothing. The MDB does other things,too, and generally behaves itself as desired. But, if I have done the DLL thing, even though I close the MDB, Access refuses to close. If I haven't used the DLL, all is well. The DLL is one I wrote myself in VB. I'm quite stumped, and rather guess the problem may be in the DLL (I've also
14
2465
by: Crimsonwingz | last post by:
Need to calculate a sum based on a number of factors over a period of years. I can use formula ^x for some of it, but need totals to carry over in the sum and have only been able to do this thus far with a loop in a form. Basically, I have key sums Current savings Current Salary Current deposit amount
11
3139
by: ian.davies52 | last post by:
Is there anything I can do about the apparent limit on the number of textboxes that have calculations as their control source on a form or report in ms-access? I have a query that pulls together all the fields from two tables, each with about 20 fields. I then have a statistics form that has the query as its source and the form has 273 textboxes on, each with a calculation based on the underlying query values. The form looks like a...
7
7072
by: ddecoste | last post by:
I have a need to add a visual representation to some data in Access. I need to draw a matix of squares inside another square. I have all the data that I need in a record in Access. The data changes according to what the user inputs. I know that Access does not allow you to draw on forms so I decided to put the output in an Excel file for the user but I am having trouble drawing the rectange from Access. Here is my simple code so far: ...
2
4845
by: kkk1979 | last post by:
Hi, I have been using access 2000. I have created a form where I put labels and a button to display report. I have populated the labels of that form by using so many tables and calculations. The problem here is, I need to display those label values(captions) into my report (with out repeating all the calculations). Is it possible to get those label controls from the report (like forms!frmname!label.caption) ?? Can anybody help...
3
3252
by: hawaiijeff | last post by:
I have a report that I built in Access 2002. I built it with the report wizard, but then went into design mode and added a extra information which was calculations off the existing fields in the report (these calculated values are not pulled in the original query). So the report looks great and performs as expected, but when I export it to Excel I lose all of the extra fields that I added (and of course all of the formatting). All that it...
4
2125
by: talktozee2 | last post by:
Hi, everyone. My problem is a bit too complex to explain in writing, let alone in the title of my post, but I'll give it a shot. I have a report that has a basic set of columns and rows, but complex calculations are run between cells of each row, and between cells of different rows. Based on these calculations some rows are hidden and some are not. Now, I need to temporarily store paired data ("date" and "amount") from some of the rows...
7
1657
by: popo725 | last post by:
Hi, I'm new at using Microsoft Access (2003), and I've created a "MonthlyReport" query, which has functioned properly in the past and I update the table monthly as I update the data in the underlying table and query files. All the query does is to run some calculations from data inputed every month, and it aggregates the results of those calculations in the report. I tried to run or display the report under both 'Layout' and 'Print'...
3
1504
by: riaane | last post by:
Please help. This is driving me around the bend. I have a report that I OutputTo Rich Text format but my Percentage calculations do not survive the conversion from the report to the saved document. Please see: http://i56.photobucket.com/albums/g161/riaane/ReportPrint.jpg Has anyone encountered this before? I have many other reports and they all save correctly with all calculations intact. If you are looking for me, I'm chewing my...
5
2877
by: accesstruggle | last post by:
Hello, I am having trouble with my database in Access. The problem lies in my report. I have created a report based off a query. The query contains all values that I'll need for my report- some will be directly on the report in text boxes, etc and others will be needed for calculations only and so are not directly on the report. My problem is when I'm writing the code for my text box "TriagePercent" which should, based on the AuditNum (pk)...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.