473,486 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Count() shows #Error

I hate to ask such an ambiguous question but...what are some possible causes
of getting #Error in a text box with =Count([FieldName]) as the control
source.

I have a form with a text control on the form footer with the control source
of =Count([FieldName]) and it counts all of the records on the form and
displays 0 if there are none. I copied this form, and changed the forms
control source, as well as those of the various fields (the field used in
the count name is actually the same. The same field exists in both control
source tables). I copied the form again and renamed as necessary and now the
count control does not work. The [FieldName] corresponds to a field on the
form! If there are records or not, I still get #Error. There is no code
behind the form and the referenced field is included in the underlying
controlsource query. Also, I tried puting every field in the count
expression and using * to no avail. I've run out of ideas.

Please help!
Jan 31 '07 #1
1 5432
On Wed, 31 Jan 2007 00:49:53 GMT, "Jimmy" <do**@email.mewrote:

In such cases I disambiguate, and name the control for example
txtCountMe, and the query field CountMe.
Then I use:
=Count(CountMe)

-Tom.

>I hate to ask such an ambiguous question but...what are some possible causes
of getting #Error in a text box with =Count([FieldName]) as the control
source.

I have a form with a text control on the form footer with the control source
of =Count([FieldName]) and it counts all of the records on the form and
displays 0 if there are none. I copied this form, and changed the forms
control source, as well as those of the various fields (the field used in
the count name is actually the same. The same field exists in both control
source tables). I copied the form again and renamed as necessary and now the
count control does not work. The [FieldName] corresponds to a field on the
form! If there are records or not, I still get #Error. There is no code
behind the form and the referenced field is included in the underlying
controlsource query. Also, I tried puting every field in the count
expression and using * to no avail. I've run out of ideas.

Please help!
Jan 31 '07 #2

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

Similar topics

6
44076
by: Hari Om | last post by:
Here are the details of my error log files: I execute the command and get following message at console: ---------------------------------------------------------------------- ../sqlldr...
1
10564
by: Ryan | last post by:
I've got a problem I have't run up against before. I generally test for an empty recordset using BOF and EOF. Today, for the first time I ran into a problem where my recordset shows BOF and EOF =...
9
10806
by: Terry E Dow | last post by:
Howdy, I am having trouble with the objectCategory=group member.Count attribute. I get one of three counts, a number between 1-999, no member (does not contain member property), or 0. Using...
1
2919
by: Phoenix_ver10 | last post by:
I have a mailing list with multiple names going to the same addresses. I need one address with all the names for that address on it. I checked out the example on microsoft's site, but A: It doesn't...
23
2858
by: Gary Wessle | last post by:
Hi I have a vector<charwhich looks like this (a d d d a d s g e d d d d d k) I need to get the biggest count of consecutive 'd'. 5 in this example I am toying with this method but not sure if...
5
8121
by: JimmyKoolPantz | last post by:
for some reason I can't seem to figure this out. Situation: I'm using vb.net to create a query that will populate a dataset with zipcode and count that have unique first 3 digits. I want to...
22
12418
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="...
3
4869
by: Margie | last post by:
Hello all, after getting no where with my Access 2007 database problem for an entire week I figured I could use some outside help. Wanting to skill myself in Access, I decided to make a movie...
6
10546
Lensmeister
by: Lensmeister | last post by:
I am getting a little better on this Access DB (in Access 2003) I am making although I am having one problem at this time I cannot fathom out. I have a form (frm_Stats) This form has the following...
0
7099
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
6964
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
7175
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...
1
6842
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
4559
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
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
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.