hi,
how would u do a count for somthing that is checked, in a check box?? this
is wat i've got so far, but its coming out with an error;
=DCount("Available","tblFilm","[Available]='Checked'")
i;ve tried changed checked to true, but its the same error. i'm trying to
get it to count the number of checks in the boxes.
dev 7 9773
Hi:
Since "checked"=true=-1, just sum the field, then take the absolute value:
=abs(sum([available])
If you're doing it in a report, the above will suffice if used in a
grouped section or report footer. If in a query I guess you could use
dsum()
HTH
Jan
DP wrote: hi,
how would u do a count for somthing that is checked, in a check box?? this is wat i've got so far, but its coming out with an error;
=DCount("Available","tblFilm","[Available]='Checked'")
i;ve tried changed checked to true, but its the same error. i'm trying to get it to count the number of checks in the boxes.
dev
sorry, so wat would it be, ;
=abs(sum([Available],"tblFilm")
i tried the above, it dont work.
i've just got it on a statistics form. i'm tryin to count teh number of
checks.
dev
"Jan" <ja*@stempelconsulting.com> wrote in message
news:11*************@corp.supernews.com... Hi:
Since "checked"=true=-1, just sum the field, then take the absolute value: =abs(sum([available])
If you're doing it in a report, the above will suffice if used in a grouped section or report footer. If in a query I guess you could use dsum()
HTH
Jan
DP wrote: hi,
how would u do a count for somthing that is checked, in a check box?? this is wat i've got so far, but its coming out with an error;
=DCount("Available","tblFilm","[Available]='Checked'")
i;ve tried changed checked to true, but its the same error. i'm trying to get it to count the number of checks in the boxes.
dev
Hello DP,
Perhaps another way around your problem is
to create an extra field in your query such as
SumYes: IIf([Available]=-1,1,0)
Then, Sum([SumYes]) would be the final
expression. This would sum all of the 1's
in that column. Hope you understand what
I'm saying. I use this method all the time.
If put on a form, place Sum([SumYes]) in
the footer for your form to show your total.
Regards
sorry, that seems too complicated.
i was thinking of just using the expression builder, like the person before
suggested.
i have a statistics form, where i wanted the user, to see how many films are
available and how many arent.
i've got other fields, which are very similar, and i just wanted a quick and
easy method of doing it.
i've not got a query to process any of teh above, its just a form, created
from a customer table. ive got;
=abs(sum([Available],"tblFilm")
so far, and it aint workin. is there anything similar to that i can use?
thanx
dev
"inkman04" <ra*******@yahoo.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com... Hello DP,
Perhaps another way around your problem is to create an extra field in your query such as
SumYes: IIf([Available]=-1,1,0)
Then, Sum([SumYes]) would be the final expression. This would sum all of the 1's in that column. Hope you understand what I'm saying. I use this method all the time.
If put on a form, place Sum([SumYes]) in the footer for your form to show your total.
Regards
sorry,. i done it now. it was
=Abs(DSum("Available","tblFilm"))
but how would i count them, if they are not checked?
dev
"DP" <DP@hotmail.com> wrote in message
news:uc******************@newsfe6-gui.ntli.net... sorry, that seems too complicated. i was thinking of just using the expression builder, like the person
before suggested.
i have a statistics form, where i wanted the user, to see how many films
are available and how many arent. i've got other fields, which are very similar, and i just wanted a quick
and easy method of doing it.
i've not got a query to process any of teh above, its just a form, created from a customer table. ive got;
=abs(sum([Available],"tblFilm")
so far, and it aint workin. is there anything similar to that i can use?
thanx
dev
"inkman04" <ra*******@yahoo.com> wrote in message news:11*********************@g43g2000cwa.googlegro ups.com... Hello DP,
Perhaps another way around your problem is to create an extra field in your query such as
SumYes: IIf([Available]=-1,1,0)
Then, Sum([SumYes]) would be the final expression. This would sum all of the 1's in that column. Hope you understand what I'm saying. I use this method all the time.
If put on a form, place Sum([SumYes]) in the footer for your form to show your total.
Regards
That would be (the total recordcount) - (the abs(dSum...))
"DP" <DP@hotmail.com> wrote in message
news:eo******************@newsfe5-gui.ntli.net... sorry,. i done it now. it was
=Abs(DSum("Available","tblFilm"))
but how would i count them, if they are not checked?
dev
"DP" <DP@hotmail.com> wrote in message news:uc******************@newsfe6-gui.ntli.net... sorry, that seems too complicated. i was thinking of just using the expression builder, like the person before suggested.
i have a statistics form, where i wanted the user, to see how many films are available and how many arent. i've got other fields, which are very similar, and i just wanted a quick and easy method of doing it.
i've not got a query to process any of teh above, its just a form, created from a customer table. ive got;
=abs(sum([Available],"tblFilm")
so far, and it aint workin. is there anything similar to that i can use?
thanx
dev
"inkman04" <ra*******@yahoo.com> wrote in message news:11*********************@g43g2000cwa.googlegro ups.com... > Hello DP, > > Perhaps another way around your problem is > to create an extra field in your query such as > > SumYes: IIf([Available]=-1,1,0) > > Then, Sum([SumYes]) would be the final > expression. This would sum all of the 1's > in that column. Hope you understand what > I'm saying. I use this method all the time. > > If put on a form, place Sum([SumYes]) in > the footer for your form to show your total. > > Regards >
thanx man, i done it.
dev
"Mal" <me@myhome.net> wrote in message
news:47***************@newsread1.news.atl.earthlin k.net... That would be (the total recordcount) - (the abs(dSum...))
"DP" <DP@hotmail.com> wrote in message news:eo******************@newsfe5-gui.ntli.net... sorry,. i done it now. it was
=Abs(DSum("Available","tblFilm"))
but how would i count them, if they are not checked?
dev
"DP" <DP@hotmail.com> wrote in message news:uc******************@newsfe6-gui.ntli.net... sorry, that seems too complicated. i was thinking of just using the expression builder, like the person before suggested.
i have a statistics form, where i wanted the user, to see how many
films are available and how many arent. i've got other fields, which are very similar, and i just wanted a
quick and easy method of doing it.
i've not got a query to process any of teh above, its just a form, created from a customer table. ive got;
=abs(sum([Available],"tblFilm")
so far, and it aint workin. is there anything similar to that i can
use?
thanx
dev
"inkman04" <ra*******@yahoo.com> wrote in message news:11*********************@g43g2000cwa.googlegro ups.com... > Hello DP, > > Perhaps another way around your problem is > to create an extra field in your query such as > > SumYes: IIf([Available]=-1,1,0) > > Then, Sum([SumYes]) would be the final > expression. This would sum all of the 1's > in that column. Hope you understand what > I'm saying. I use this method all the time. > > If put on a form, place Sum([SumYes]) in > the footer for your form to show your total. > > Regards >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark |
last post by:
Hi, I have a Access database with two tables; a category table and an images
table. In the Category table I have a field for Index number and a field for
Categories. The images table has a field...
|
by: Cro |
last post by:
Hello Access Developers,
I'd like to know if it is possible to perform a count in an expression
that defines a control source.
My report is based on a query. In my report, I want a text box to...
|
by: Invalidlastname |
last post by:
Hi,
We are developing an asp.net application, and we dynamically created certain literal controls to represent some read-only text for certain editable controls. However, recently we found an issue...
|
by: Anuradha |
last post by:
Dear Experts
How can I count records in a data reader?
Thx
Anuradha
|
by: MP |
last post by:
vb6,ado,mdb,win2k
i pass the sql string to the .Execute method on the open connection to
Table_Name(const) db table
fwiw
(the connection opened via class wrapper:)
msConnString = "Data Source="...
| |
by: Phil Stanton |
last post by:
I am trying to count the fields in a queryDef in an external database.
If I run this in the actaal database I get Fields.count = 6 correctly
Private Sub ObjectName_DblClick(Cancel As Integer)
...
|
by: Pete |
last post by:
I need to create a single query (Not a SQL query) against a single
table that counts the number of records in the table, where the single
field "tmp" contains specific string values
If the field...
|
by: MLH |
last post by:
A mailing list table in its virgin state contained sequential,
consecutive integers in an autonumber field (A97). I've deleted
records throughout the table. Now I would like to identify each...
|
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...
|
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,...
|
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,...
| |
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...
|
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...
|
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,...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |