Heres one that is giving me fits ( = = Access newbie), more than likely
something simple that I blew right over . . . any help is appreciated -
I have a report based on a query, with several columns I need to work with.
Values in the cols are " Over " and " Under", as text values. The query is
for a start / end date, my count of records returned will be variable
depending on the runtime dates entered.
I need to count the number of " Over " , count the total lines , then return
a percentage " Over " in each col of the report ( there are 5 cols , Field
names [test_a], [test_b] ...[test_e] ) . Am I doing the right thing
attempting to " count " or do I need to take another approach ?
(count(test_a where val="Over") / count(*) x 100) // no attempt at
correct syntax here
for % Over is my goal. All my attempts are giving me " #Error " in the text
box I've placed in the footer.
Again, any help is greatly appreciated. 3 1989
Rabun,
Mebbe you need to use a subquery to provide your counts of over/under to the
query in which they live?
"Rabun" <hy***********@ yahoo.com> wrote in message
news:e1******** *************** ***@ALLTEL.NET. .. Heres one that is giving me fits ( = = Access newbie), more than likely something simple that I blew right over . . . any help is appreciated -
I have a report based on a query, with several columns I need to work with. Values in the cols are " Over " and " Under", as text values. The query is for a start / end date, my count of records returned will be variable depending on the runtime dates entered.
Weeellll . . . I did get the % result by assigning 0 /1 to under / over via
a secondary field corresponding to the test_x fields with onchange subs,
then doing count / sum . . . then hiding all the calculating textboxes on
the report. Jeez, wayyyy to cluttered . . . proof that I don't belong here
:) Was looking for a cleaner way to do it . . . I'll check into the
subqueries, Access is all new to me.
Thanks for the reply !
Rab
"Alan Webb" <kn*****@hotmai l.com> wrote in message
news:Ee******** ************@co mcast.com... Rabun, Mebbe you need to use a subquery to provide your counts of over/under to
the query in which they live?
(clip)
I tend to do this sort of stuff like this.
Use an alias in a query column: Total:IIf(IsNul l([test_a]),0,1) Make this a
sum column.
Next: CountOvers:IIf([test_a]="over",1,0) Make this a sum column also.
Next: Over%: [CountOvers]/[Total] Make this an expression column and
format to percent.
Works for me. By the way, watch those control names in the reort as that can
cause errors if they are the same as the field names... I always rename them
txtBlahBlah or lblBlahBlah etc.
Hope that's of some help.
Jeff.
"Rabun" <hy***********@ yahoo.com> wrote in message
news:e1******** *************** ***@ALLTEL.NET. .. Heres one that is giving me fits ( = = Access newbie), more than likely something simple that I blew right over . . . any help is appreciated -
I have a report based on a query, with several columns I need to work
with. Values in the cols are " Over " and " Under", as text values. The query is for a start / end date, my count of records returned will be variable depending on the runtime dates entered.
I need to count the number of " Over " , count the total lines , then
return a percentage " Over " in each col of the report ( there are 5 cols , Field names [test_a], [test_b] ...[test_e] ) . Am I doing the right thing attempting to " count " or do I need to take another approach ?
(count(test_a where val="Over") / count(*) x 100) // no attempt at correct syntax here
for % Over is my goal. All my attempts are giving me " #Error " in the
text box I've placed in the footer.
Again, any help is greatly appreciated.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Remy Blank |
last post by:
Hello unittest users,
In a project I am working on, I have a series of tests that have
to be run as root, and others as a normal user.
One solution is to separate the tests into two different files,
and run the right one. I don't like this too much, as I prefer
to group tests by "function".
Another solution is to build the test suite differently, depending
|
by: MLH |
last post by:
I have a textbox control used to enter a single
alphanumeric character. It changes the case
of "i" to upper case. But it does not do so with
the letter "g". Its left as "g" - not changed to "G"?
Although Access's attempts at keeping me
gramatically correct, it isn't helping me in this
particular case. Can I turn that behavior off
at will - on a case-by-case basis?
|
by: Nitin Bhardwaj |
last post by:
Well, i'm a relatively new into C( strictly speaking : well i'm a
student and have been doing & studying C programming for the last 4
years).....and also a regular reader of "comp.lang.c"
I don't have a copy of ANSI C89 standard,therefore i had to post this
question:
What is the difference between "unspecified" behaviour & "undefined"
behaviour of some C Code ??
|
by: YellowFin Announcements |
last post by:
Whitepaper: "Yellowfin Reporting" enables Embedded Business
Intelligence
--------------------------------------------------------------------------------
Embedded reports are a standard requirement of most applications. But
users are increasingly demanding more sophisticated reporting from
applications - seeking such features as custom report design, ad hoc
report creation and analytics. Developers that want to embed business...
|
by: Chen ShuSheng |
last post by:
HI,
I am now study a segment of codes:
------------------------
printf("%p\t",fp); /*add by me*/
fseek(fp, 0L, SEEK_END); /* go to end of file */
printf("%p\t",fp); /*add by me*/
last = ftell(fp);
cout<<"last="<<last<<"\t"; /*add by me*/
-------------------------
| |
by: Daniel Lipovetsky |
last post by:
I would like for an object to "report" to a container object when a
new instance is created or deleted. I could have a container object
that is called when a new instance is created, as below.
class AnyObject:
pass
class Container:
links =
def add(self,other):
|
by: spinoza1111 |
last post by:
I want the GUI of the spinoza system to not piss me off with the usual
type of progress reporting one sees: the flashy, colorful, and utterly
uninformative gizmos that go back and forth and round and round until
who knows when.
Therefore, the following C Sharp .Net code constitutes a theory of
progress reporting.
I claim that any fixed-count (limit available at run time before the
start) for loop can be monitored by considering it as...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |