473,325 Members | 2,872 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,325 software developers and data experts.

Why cant MS Access 2007 give result of =count([text])+Sum([number])

3
The actual expression is
Expand|Select|Wrap|Line Numbers
  1. '=(Count([AttendanceDate]))+(Count([BIBLEDATE]))+(Count([MEMORYTEXTDATE]))+(Count([VISITORDATE]))+((Sum([Quiz])))'
When Quiz value is null/zero, the total is not generated
Aug 26 '10 #1
4 2139
code green
1,726 Expert 1GB
Please provide the full query and what you are trying to do
Aug 26 '10 #2
Davy
3
I have done a report on students. I can total all the dates they have attended, brought their bibles, said their memory text. Access can total these ok. Trouble is I have added a numeric field "Quiz". When I try to add this field to their total score I get no total. as soon as it is excluded from the total I get results.
Expand|Select|Wrap|Line Numbers
  1. =(Count([AttendanceDate]))+(Count([BIBLEDATE]))+(Count([MEMORYTEXTDATE]))+(Count([VISITORDATE]))+((Sum([Quiz])))
Aug 26 '10 #3
code green
1,726 Expert 1GB
It looks OK.
What result do you get with just
Expand|Select|Wrap|Line Numbers
  1. =((Sum([Quiz])) 
It looks like this is returning an invalid result such as NULL.
If you have NULL values in [Quiz] they might be better as zero
Aug 26 '10 #4
Davy
3
I found the issue. I would get no total if Quiz was null. I have now set the default for this field to be Zero, I also updated the entire table to change all null values to zero. The totals are now all ok.

Thanks CG
Aug 26 '10 #5

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

Similar topics

6
by: robin9876 | last post by:
In an Access 97 (and 2000) database that has linked tables to Oracle which is showing some fields as text when they are numbers in Oracle. In Oracle they are specified to a size e.g. Number(38)....
3
by: denisel | last post by:
Hi, It's my first time to build a database and just learning Access as I go . I am trying to design a simple database on survey tracking. Here is my table structure: tblPerson ...
1
by: zafm86 | last post by:
Hi everyone! I'm sure my problem is pretty easy to solve but I've been working on it for a long and my my brain is not working correctly anymore. I'm working with an AS400 and I mhave to do an...
2
by: ccarter45 | last post by:
Help! I need to write a program that reads a text file with numbers and sums up each line of numbers. Then write a part of the program that outputs the text to another file. How do I do this? ...
6
by: Brett Barry: Go Get Geek! | last post by:
Hello, I'm having this problem and tried the answer in this post:...
60
by: Bill Cunningham | last post by:
I have a row of values like such, placed in a text file by fprintf. 10.50 10.25 10.00 10.75 11.00 What I want to do to the above colum is add a new column right beside it which is a total...
4
by: =?Utf-8?B?RHlsYW5TbWl0aA==?= | last post by:
I have a WebForm where I'm dynamically creating some controls and I'm having difficulty understanding how the state is being persisted and how to work with it. I've created a simplified example...
14
by: zufie | last post by:
I have to create a QA report regarding callers calling into a phone hotline. The report consists of many checkboxes such as: Did the IBCCP agency contact you? Yes/NO How many days passed...
9
by: sillyr | last post by:
Hi - I use Access 2007. I have a two data fields that I would like to add together in a query and then have the query sum the data for the entire table. The problem is that one of the data fields...
7
AccessIdiot
by: AccessIdiot | last post by:
This seems like it should be really easy and I think I'm just missing something really dumb. I have a form that filters a report. At the top of the report I have a bunch of unbound text boxes that...
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...
1
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: 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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.