473,320 Members | 1,947 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.

calculations on reports

jayme
83
I am using MS Access 2000 - I am trying to do a calculation in the footer of a report I have. There are several columns of checkboxes titled accepted, rejected, etc for the jobs(records) that go across. I am trying to make a ratio formula to count the number of checks under the "accepted" column based on the total number of checks all together-then the number of checks under "rejected" column based on the total and so on.
I tried using the formula
=Sum([Accepted])
and
=Count([Accepted])
just to see if they would add the checks and I keep getting an error-#Error.
Does anyone have a suggestion?
Apr 5 '07 #1
11 1749
MMcCarthy
14,534 Expert Mod 8TB
I am using MS Access 2000 - I am trying to do a calculation in the footer of a report I have. There are several columns of checkboxes titled accepted, rejected, etc for the jobs(records) that go across. I am trying to make a ratio formula to count the number of checks under the "accepted" column based on the total number of checks all together-then the number of checks under "rejected" column based on the total and so on.
I tried using the formula
=Sum([Accepted])
and
=Count([Accepted])
just to see if they would add the checks and I keep getting an error-#Error.
Does anyone have a suggestion?
Try ...

Expand|Select|Wrap|Line Numbers
  1. =Sum(IIf([Accepted]=True,1,0))
Mary
Apr 6 '07 #2
jayme
83
Try ...

Expand|Select|Wrap|Line Numbers
  1. =Sum(IIf([Accepted]=True,1,0))
Mary
it still comes up with #Error when I use that code.
??
Apr 12 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Try this ...

Expand|Select|Wrap|Line Numbers
  1. =Sum(IIf([Accepted]=-1,1,0))
Mary
Apr 12 '07 #4
jayme
83
im not sure what the deal is? that one didnt work either?!
Apr 13 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
im not sure what the deal is? that one didnt work either?!
Check the name of the checkbox on the report under the Other properties and make sure that it is actually called Accepted.

Mary
Apr 13 '07 #6
jayme
83
Check the name of the checkbox on the report under the Other properties and make sure that it is actually called Accepted.

Mary
I did that several times-just to make sure. It is Accepted.
Apr 13 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
I did that several times-just to make sure. It is Accepted.
You checked it under the other properties, yes?
In your first post you used both accepted and Accepted which is it?
Apr 13 '07 #8
jayme
83
Yes-that is where I checked it.
Sorry-it is Accepted.
Apr 13 '07 #9
MMcCarthy
14,534 Expert Mod 8TB
Yes-that is where I checked it.
Sorry-it is Accepted.
Which Footer are you putting this in?
Apr 13 '07 #10
jayme
83
Which Footer are you putting this in?
ok-got it. thanks. i didnt even notice there were different footers! sorry about that. i was putting it in the page footer instead of the report footer. thank you for your help!
Apr 13 '07 #11
MMcCarthy
14,534 Expert Mod 8TB
ok-got it. thanks. i didnt even notice there were different footers! sorry about that. i was putting it in the page footer instead of the report footer. thank you for your help!
You're welcome.
Apr 13 '07 #12

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

Similar topics

11
by: lduperval | last post by:
Hi, I`m trying to do date calculations in three types of time zones: local, GMT and specified. The issue I am facing is that I need to be able to specify a date in the proper time zone, and I`m...
2
by: Willem | last post by:
Hi there, I'm sort of new with doing much record manipulation with queries. Up till now I've been programming VBA and doing record looping to get my results. This works fine but tends to get...
2
by: Mark Lees | last post by:
I need some help setting up some date caluclations. Fields Include: A. DOB "date of birth" B. IFSPOrginal "Date IFSP is entered" C. IFSPRedo "Date 12 months into the future from...
3
by: John M | last post by:
Hi, I've been coming up against a failure of a report to display the result of a simple calculation. I have realised that this calculation cannot take place unless the field I am working on is...
1
by: Dan Kean | last post by:
Hi all, I need to calculate some amounts on reports from rcords before they print, struggling doing so as it doesnt seem to run the calcs asks for parameters instead- do I need to do it as a form...
6
by: migueltxa | last post by:
Hi all, I have a problem with some calculations in MS Access 2003. I have 3 fields (Qty, Price and VolumeUSD) in a form and the following formula: VolumeUSD = Qty * Price. Qty and VolumeUSD...
0
by: md100 | last post by:
I have calculations in a report to work out payments deducting tax for some unless tax deduction flag is given using the statement =IIf(=True,(),(-((/100)*22))) This value is being stored in...
1
by: Grubsy4u | last post by:
Grubsy4u Newbie 7 Posts October 5th, 2007 11:31 AM #1 Report calculations --------------------------------------------------------------------------------
4
by: Grubsy4u | last post by:
Does anyone know how i can do calculations for search query reports. How is this overcome because the search will be differrent with a different report every time. Is there a formular i can use...
9
Catalyst159
by: Catalyst159 | last post by:
I have a form which is used to calculate residential Floor Area Ratio (FAR). The form is structured into seven parts as follows: Part A: Maximum FAR and Floor Area: Part B: Gross Floor Area of...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
0
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...
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.