473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to show Record counts on Forms!?


Hi:

I am using Access 2000, and have a form which is linked to a table ("tblSetup"). I would
like to be able to show on the form the count of the number of records in 3 different
tables. The form is directly linked to "tblSetup" so that various system parameters can be
changed. The sheets I would like to be able to show the count on are "tbltimesheetsnew"
"tblHistory" and "TblPending".

I have been trying to do it with a bound field, and all I get is "error".
The formulation I have been using is : =Count("[tbltimesheetsnew]"). Variations do not
appear to work either!
Can someone suggest an approach that would work for me.
Nov 12 '05 #1
3 1672
DFS

"John Baker" <Ba******@Verizon.net> wrote in message
news:v3********************************@4ax.com...

Hi:

I am using Access 2000, and have a form which is linked to a table ("tblSetup"). I would like to be able to show on the form the count of the number of records in 3 different tables. The form is directly linked to "tblSetup" so that various system parameters can be changed. The sheets I would like to be able to show the count on are "tbltimesheetsnew" "tblHistory" and "TblPending".

I have been trying to do it with a bound field, and all I get is "error".
The formulation I have been using is : =Count("[tbltimesheetsnew]"). Variations do not appear to work either!
Can someone suggest an approach that would work for me.


Use the domain function DCount() in the ControlSource:

=DCount("Field","Table")
or
=DCount("Field","Table","Field = 'Jones' ")


Nov 12 '05 #2
Are these being done as datasheets? As single forms? The approach you use
may depend on how it is being displayed.

Mike Storr
www.veraccess.com

"John Baker" <Ba******@Verizon.net> wrote in message
news:v3********************************@4ax.com...

Hi:

I am using Access 2000, and have a form which is linked to a table ("tblSetup"). I would like to be able to show on the form the count of the number of records in 3 different tables. The form is directly linked to "tblSetup" so that various system parameters can be changed. The sheets I would like to be able to show the count on are "tbltimesheetsnew" "tblHistory" and "TblPending".

I have been trying to do it with a bound field, and all I get is "error".
The formulation I have been using is : =Count("[tbltimesheetsnew]"). Variations do not appear to work either!
Can someone suggest an approach that would work for me.

Nov 12 '05 #3
Yjaml you. that worked very well.

However, I now have aq slightly different problem. When I remove records from the table I
am counting the count on the fome does not change. I have tried using refresh (as a macro)
and that dosent do it. Can you suggest what command I should issue to refresh the
calculations so that they reflect the new reality of the table contents count?

Regards

John Baker

"DFS" <no****@nospam.com> wrote:

"John Baker" <Ba******@Verizon.net> wrote in message
news:v3********************************@4ax.com.. .

Hi:

I am using Access 2000, and have a form which is linked to a table

("tblSetup"). I would
like to be able to show on the form the count of the number of records in

3 different
tables. The form is directly linked to "tblSetup" so that various system

parameters can be
changed. The sheets I would like to be able to show the count on are

"tbltimesheetsnew"
"tblHistory" and "TblPending".

I have been trying to do it with a bound field, and all I get is "error".
The formulation I have been using is : =Count("[tbltimesheetsnew]").

Variations do not
appear to work either!
Can someone suggest an approach that would work for me.


Use the domain function DCount() in the ControlSource:

=DCount("Field","Table")
or
=DCount("Field","Table","Field = 'Jones' ")


Nov 12 '05 #4

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

Similar topics

3
by: Don Seckler | last post by:
I have a data entry form called Draw. This form is used to enter data in the table called Draw. The table has the following fields: WholesalerID, MagID, IssueID, CopiesDist, and the index is...
2
by: chris vettese | last post by:
I've been searching for a few days and have't found the solution I'm looking for. I want to create the following in my form's header...Material: 1 of 15. The first number will change as the user...
4
by: N J | last post by:
Hi, How can I get a text box in a form to display how many records have NEWORDER field as True? Thanks.. -- Kind Regards, Customer Services
4
by: Charts | last post by:
I have a C# console application and I need pop up a Messagebox. However the IntelliSense does not show for using System.Windows.Forms; So, the application does not recognize the MessageBox. Please...
0
by: Craig O'Connor | last post by:
I am new to DB2, and looking to access a DB2 v3r5 database to determine via SQL Query all the base tables and their corresponding record counts. I assume this information should be able to be...
0
by: question | last post by:
Hi! I have a requirement where I need to display multiple forms one after the other like a slide show. These are in the same application. Basicall on selection of a menu item it should start...
3
by: fleece | last post by:
Hi, I have two forms based on the underlying table. One is a data entry, and the other is a continuous form based on some searching criteria. Now I want to add "edit" button to each record in the...
12
by: JHNielson | last post by:
I have a simple question, but I can't seem to find the answer. I have this code to count the number of records that pass through a set of processes: It counts how many records go through...
3
by: Jill1975 | last post by:
I work with a large group of people who enter tons of records each day. To seach for a specific record takes a long time. To help manage this, I have duplicated the form. One form will hold all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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
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...

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.