A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

display a total value



 
 
Thread Tools Display Modes
  #1  
Old May 3rd, 2010, 12:53 PM posted to microsoft.public.access.reports
Rob[_35_]
external usenet poster
 
Posts: 3
Default display a total value

Hello

I hope someone can shed some light on a slight problem. I am setting up a
database to hold personal information about pupils at our school. I have
set up a a Query by Form system linked to a report.

I've displayed the total number of records found at the bottom of the report
(Which I've done using a =count(Name) within a text box. What I'd like to
do is display the total number of records in the original (unsearched)
record set.

The bottom of the report would then read:

14 records found out of 30

using 2 text boxes and a label in the middle :

=count(name) found out of XXXXXX ----some kind of expression
which I can't figure out.

I've tried using =count(original_table_name!name) but this for some reason
still only displays the number of selected records and not the number from
the original set.

Any help much appreciated!

Rob

  #2  
Old May 3rd, 2010, 02:02 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default display a total value

Rob,
On my website (below) I have a 97 and 2003 sample file called
Record Statistics. That should demonstrate how to display the
form's recordset statistics you want.
Given 500 records, and you're on the 10th record...
10 of 500 of 500
If you filter that form to 300 records and you're on the 10th record...
10 of 300 of 500
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Rob" wrote in message
...
Hello

I hope someone can shed some light on a slight problem. I am setting up a
database to hold personal information about pupils at our school. I have
set up a a Query by Form system linked to a report.

I've displayed the total number of records found at the bottom of the
report (Which I've done using a =count(Name) within a text box. What I'd
like to do is display the total number of records in the original
(unsearched) record set.

The bottom of the report would then read:

14 records found out of 30

using 2 text boxes and a label in the middle :

=count(name) found out of XXXXXX ----some kind of expression
which I can't figure out.

I've tried using =count(original_table_name!name) but this for some reason
still only displays the number of selected records and not the number from
the original set.

Any help much appreciated!

Rob



  #3  
Old May 3rd, 2010, 03:29 PM posted to microsoft.public.access.reports
Rob[_35_]
external usenet poster
 
Posts: 3
Default display a total value

Many thanks for that. Have got it cracked now using the DCount command.

Rob



"Al Campagna" wrote in message
...
Rob,
On my website (below) I have a 97 and 2003 sample file called
Record Statistics. That should demonstrate how to display the
form's recordset statistics you want.
Given 500 records, and you're on the 10th record...
10 of 500 of 500
If you filter that form to 300 records and you're on the 10th record...
10 of 300 of 500
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Rob" wrote in message
...
Hello

I hope someone can shed some light on a slight problem. I am setting up
a database to hold personal information about pupils at our school. I
have set up a a Query by Form system linked to a report.

I've displayed the total number of records found at the bottom of the
report (Which I've done using a =count(Name) within a text box. What I'd
like to do is display the total number of records in the original
(unsearched) record set.

The bottom of the report would then read:

14 records found out of 30

using 2 text boxes and a label in the middle :

=count(name) found out of XXXXXX ----some kind of expression
which I can't figure out.

I've tried using =count(original_table_name!name) but this for some
reason still only displays the number of selected records and not the
number from the original set.

Any help much appreciated!

Rob



  #4  
Old May 3rd, 2010, 06:59 PM posted to microsoft.public.access.reports
Rob[_35_]
external usenet poster
 
Posts: 3
Default display a total value

Many thanks - have cracked it now (after looking at your example form with
the dcount command)

Rob




"Al Campagna" wrote in message
...
Rob,
On my website (below) I have a 97 and 2003 sample file called
Record Statistics. That should demonstrate how to display the
form's recordset statistics you want.
Given 500 records, and you're on the 10th record...
10 of 500 of 500
If you filter that form to 300 records and you're on the 10th record...
10 of 300 of 500
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Rob" wrote in message
...
Hello

I hope someone can shed some light on a slight problem. I am setting up
a database to hold personal information about pupils at our school. I
have set up a a Query by Form system linked to a report.

I've displayed the total number of records found at the bottom of the
report (Which I've done using a =count(Name) within a text box. What I'd
like to do is display the total number of records in the original
(unsearched) record set.

The bottom of the report would then read:

14 records found out of 30

using 2 text boxes and a label in the middle :

=count(name) found out of XXXXXX ----some kind of expression
which I can't figure out.

I've tried using =count(original_table_name!name) but this for some
reason still only displays the number of selected records and not the
number from the original set.

Any help much appreciated!

Rob



  #5  
Old May 3rd, 2010, 09:56 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default display a total value

OK Rob... good deal.
Al

"Rob" wrote in message
...
Many thanks - have cracked it now (after looking at your example form with
the dcount command)

Rob




"Al Campagna" wrote in message
...
Rob,
On my website (below) I have a 97 and 2003 sample file called
Record Statistics. That should demonstrate how to display the
form's recordset statistics you want.
Given 500 records, and you're on the 10th record...
10 of 500 of 500
If you filter that form to 300 records and you're on the 10th
record...
10 of 300 of 500
--
hth
Al Campagna
Microsoft Access MVP 2007-2009
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your
life."

"Rob" wrote in message
...
Hello

I hope someone can shed some light on a slight problem. I am setting up
a database to hold personal information about pupils at our school. I
have set up a a Query by Form system linked to a report.

I've displayed the total number of records found at the bottom of the
report (Which I've done using a =count(Name) within a text box. What
I'd like to do is display the total number of records in the original
(unsearched) record set.

The bottom of the report would then read:

14 records found out of 30

using 2 text boxes and a label in the middle :

=count(name) found out of XXXXXX ----some kind of
expression which I can't figure out.

I've tried using =count(original_table_name!name) but this for some
reason still only displays the number of selected records and not the
number from the original set.

Any help much appreciated!

Rob





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.