473,508 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Count([Item]) From tblPHPDeveloperDoItems Where [Resolved] = True

MLH
I put the following

Count([Item]) From tblPHPDeveloperDoItems Where [Resolved] = True

in a report footer. It's OK at compile time. But when the report
runs - it gives me an error. Is there something I can do differently
to count up the number of records in the report where [Resolved]
is True?

Thx.
Nov 19 '07 #1
3 1343
MLH
On Mon, 19 Nov 2007 18:38:41 -0500, MLH <CR**@NorthState.netwrote:
>I put the following

Count([Item]) From tblPHPDeveloperDoItems Where [Resolved] = True
<snip>

I can do this...
=CStr(Count([Item])) & " Do-Items. " &
CStr(DCount("[Item]","tblPHPDeveloperDoItems","[Resolved] = True")) &
" Resolved Do-Items. "

But I was hoping to find out whether it could be done with Count
rather than DCount.
Nov 19 '07 #2

"MLH" <CR**@NorthState.netwrote in message
news:vt********************************@4ax.com...
On Mon, 19 Nov 2007 18:38:41 -0500, MLH <CR**@NorthState.netwrote:
>>I put the following

Count([Item]) From tblPHPDeveloperDoItems Where [Resolved] = True
<snip>

I can do this...
=CStr(Count([Item])) & " Do-Items. " &
CStr(DCount("[Item]","tblPHPDeveloperDoItems","[Resolved] = True")) &
" Resolved Do-Items. "

But I was hoping to find out whether it could be done with Count
rather than DCount.
It's not clear to me what you expected to do... nor details of what you
have. Also, what do you mean when you say "put the following . . . in the
Report Footer"? If you expect to execute an SQL statement from a Control
Source, that won't work. On the other hand, you can have a calculated
Control, wiht a Control Source including a DCount domain aggregate
statement, which can be executed. That may be why the second one worked.

If both the fields Item and Resolved are in Controls on your Report, you may
not have to resort to a DCount.

Larry Linson
Microsoft Access MVP
Nov 20 '07 #3
MLH
On Tue, 20 Nov 2007 04:37:09 GMT, "Larry Linson"
<bo*****@localhost.notwrote:
>It's not clear to me what you expected to do... nor details of what you
have. Also, what do you mean when you say "put the following . . . in the
Report Footer"? If you expect to execute an SQL statement from a Control
Source, that won't work. On the other hand, you can have a calculated
Control, wiht a Control Source including a DCount domain aggregate
statement, which can be executed. That may be why the second one worked.

If both the fields Item and Resolved are in Controls on your Report, you may
not have to resort to a DCount.

Larry Linson
Microsoft Access MVP
Thx, Larry. Both fields are in controls on the report. I'm still
working on it. Haven't got there yet. Small challenges are a
diversion for me. I enjoy them.

Nov 20 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
34448
by: Geetha | last post by:
I searched in the Oracle documents what count (1) meant and I could not find an answer. Can some one explain what Oracle does internally when use count (1) VS count (*). Thank you very much in...
2
26303
by: Ken | last post by:
The fact that you can not reassign a variable in XSL is an endless source of frustration, causing you to jump through all sorts of non-intuitive hoops. In this case, however, the lack of...
4
3989
by: juststarter | last post by:
Hello, I have an aspx file where i've put a placeholder element. On load (page_load) i create dynamically an html table which contains a checkbox and a radiobuttonlist in each tablerow . The...
2
3478
by: AZKing | last post by:
Hi, I am creating a query where I would like to count the number of specific items in a certain column of another query. I can do this for one item, for example: SELECT DISTINCTROW., Count(.)...
1
2246
by: AZKing | last post by:
Hi all, I am trying to create a query that will count the number of items in a certain field. For example, the number of cars listed as "Ford" in the USA. I can do it for just one item, but there...
6
2974
by: Lawrence 007 | last post by:
Hi, I need to count the number of rows in my Item table. The following statement gives me the number i.e. 200. Select Count(*) As Counter From Item Group By Id How can I number each...
26
2425
by: Ping | last post by:
Hi, I'm wondering if it is useful to extend the count() method of a list to accept a callable object? What it does should be quite intuitive: count the number of items that the callable returns...
5
2490
by: Genalube | last post by:
I am trying to count the number of owners that show up in a query (conveyQuery). The query will produce a column OwnName that will contain names like John Smith, Mike Jones, Frank Vaugn. Each of...
1
6995
by: =?Utf-8?B?WVhR?= | last post by:
When double-click the listview item with checkbox (View = Details), the checkbox will be checked or unchecked, how to disable this behavior? thank you.
0
7225
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
7385
jinu1996
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...
0
5629
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,...
1
5053
isladogs
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...
0
4707
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...
0
3195
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...
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
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.