473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Access Report - totaling a value that's a calculation

I have an Access report and in the body of the report there is a calculation:
=DateDiff("n",[dlyBeginTime],[dlyEndTime])/60

This is in a field called dlyElapsedTime. at the end of the report I want to have a total of this time, so can I put a sum in the footer area?
I tried it, like this:
=Sum([dlyElapsedTime])
and I get the label but not the total, it just says #Error.
Thank you

Also THANK YOU Corster, I learned a lot from your post.
Apr 18 '07 #1
5 2359
MMcCarthy
14,534 Expert Mod 8TB
You can't sum a calculated field. You will need to do the following:

Expand|Select|Wrap|Line Numbers
  1.  =Sum(DateDiff("n",[dlyBeginTime],[dlyEndTime])/60)
Apr 18 '07 #2
Okay, tried it like this:
=Sum(DateDiff("n",[dlyBeginTime],[dlyEndTime])/60)

and got this error message:
syntax error (comma) in query expression

I can't find any comma out of place...
Apr 18 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Okay, tried it like this:
=Sum(DateDiff("n",[dlyBeginTime],[dlyEndTime])/60)

and got this error message:
syntax error (comma) in query expression

I can't find any comma out of place...
Try this ...
Expand|Select|Wrap|Line Numbers
  1.  =Sum(DateDiff("n",[dlyBeginTime],[dlyEndTime]))/60
Apr 18 '07 #4
That did it!!!
Thank you very much.
Apr 18 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
That did it!!!
Thank you very much.
You're welcome.
Apr 18 '07 #6

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

Similar topics

3
by: CSDunn | last post by:
Hello, I have a situation in which each record on a report has 40 fields, any one of which can contain a value of 'C', or 'I', or 'B'. I need to create one calculated field on the report that will...
15
by: Pres | last post by:
I am not an experienced programmer. I do have a question regarding workday calculations. I have 3 fields. CURDATE, NUMDAYS, CALCDATE After entering the first two fields, normally the current...
3
by: audleman | last post by:
I've been programming in Filemaker and am used to having a field type called Calculation. An example of a calculation: In a school registration database I have a date field corresponding to the...
3
by: ncsuwolfe | last post by:
Greetings, I am creating a frequency report. I have 41 records, each record has sub-records from a source table. I am trying to detemine the frequency that each sub-record appears in a main...
13
by: Ulv | last post by:
I have a table (TblItems) with fields Lenght, Width and Height as decimalfields. I also have the fields Desc, a text field. In a form I have created this line of code after updating: Desc =...
11
by: CrostonScottish | last post by:
I am having a few difficulties calculating values in my report with the sql code that i am using. It is made up of two parts: 1: (This bit is ok) A text box has the control source set as :...
10
by: salzan | last post by:
I built a query and use it in a report. The query has one parameter that must be satified at run time which is . Rather than user type a value, I need to provide a value based on certain...
1
by: sjivanjee | last post by:
Help In Access 2007 - Report (Grouping and Sub Totaling) I have two table one stores student information and other one is for their attendance. In the attendance table their is a field called...
3
by: ebasshead | last post by:
Hi Everybody, I've been building a main invoice report which has a seperate itemised and then summed expenses report inserted on the page. I am then using the summed expenses for a calculation...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.