473,505 Members | 14,950 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Calculation Question

1 New Member
I am new to access and trying to do two calculation in my query.

TestType CountResults
Test1 05
Test2 15
Test3 20

I am using Groupby for Testtype and Count for Countresults

How do I get total for countresults (countresults is not a field on my table) and then get percentages by test.

Thank you for any assistance,

Newbie
Sep 8 '06 #1
1 1774
PEB
1,418 Recognized Expert Top Contributor
To show a total in the bottom you have to do an Union query like this

TestType CountResults
Test1 05
Test2 15
Test3 20

SELECT DISTINCT TestType, Count(Results) AS CountResults
FROM MYTable
ORDER BY TestType;

This query is saved as Query1

Your Query2 is

Select DISTINCT "Total" AS TestType, Sum(CountResults)
From Query1;


Your Union Query is:

SELECT * FROM Query1 UNION SELECT * FROM Query2;

And it's all!

:)
Sep 8 '06 #2

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

Similar topics

0
1520
by: Del | last post by:
Thanks in advance for any help. I have a database that was created in Access 2000. Several users have been upgraded to Access 2003. Since upgrading to 2003 we have noticed that one of the...
1
2246
by: cdelaney | last post by:
I have a form that I created a calculation on using 2003. The calculation works exactly like I want it to but ONLY on the first and last record. The calculation does not work/exist on records in...
1
1125
by: lncandescentHawk | last post by:
Greetings, (new to google groups) Question: what will be the ADVANTAGES and DISADVANTAGES of using MSDE + ASP.NET language to build a database that will: 1) be accessed by users via WWW to...
3
8056
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...
5
6223
by: The alMIGHTY N | last post by:
Hi all, Let's say I have a simple math formula: sum (x * y / 1000) / (sum z / 1000) I have to do this across 50 items, each with an x, y and z value, when the page first loads AND when a...
13
2065
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 =...
3
3531
by: mattmao | last post by:
Okay, I was asked by a friend about the result of this limit: http://bbs.newwise.com/attdata/forumid_14/20070922_fe7f77c81050413a20fbDWYOGm7zeRj3.jpg Not n->zero but n-> + infinite I really...
8
7142
by: elias.farah | last post by:
Hello Everyone, I'm having some very weird behavior on a couple of Access forms. (Not all forms, just some of them). The forms have been working for years, under Access XP/2003 etc, and last...
0
271
by: maxime_phan | last post by:
Hello I have a question about a project in using Pivotal CRM(I'm sorry if it's not the right forum to post, but it's so hard to find help about pivotal), I have a pivotal project and I have a...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
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...
0
7303
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,...
1
7018
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...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5613
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,...
0
4699
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...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.