PC Review


Reply
Thread Tools Rate Thread

display a total value

 
 
Rob
Guest
Posts: n/a
 
      3rd May 2010
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

 
Reply With Quote
 
 
 
 
Al Campagna
Guest
Posts: n/a
 
      3rd May 2010
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" <(E-Mail Removed)> wrote in message
news:26D061A2-4950-4587-B395-(E-Mail Removed)...
> 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



 
Reply With Quote
 
Rob
Guest
Posts: n/a
 
      3rd May 2010
Many thanks for that. Have got it cracked now using the DCount command.

Rob



"Al Campagna" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:26D061A2-4950-4587-B395-(E-Mail Removed)...
>> 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

>
>

 
Reply With Quote
 
Rob
Guest
Posts: n/a
 
      3rd May 2010
Many thanks - have cracked it now (after looking at your example form with
the dcount command)

Rob




"Al Campagna" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:26D061A2-4950-4587-B395-(E-Mail Removed)...
>> 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

>
>

 
Reply With Quote
 
Al Campagna
Guest
Posts: n/a
 
      3rd May 2010
OK Rob... good deal.
Al

"Rob" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Many thanks - have cracked it now (after looking at your example form with
> the dcount command)
>
> Rob
>
>
>
>
> "Al Campagna" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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" <(E-Mail Removed)> wrote in message
>> news:26D061A2-4950-4587-B395-(E-Mail Removed)...
>>> 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

>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display the Total Anthony Microsoft Access Reports 2 10th Nov 2006 05:08 PM
Display a total in a report =?Utf-8?B?a2F0c3Vw?= Microsoft Access Getting Started 12 7th Aug 2006 08:43 PM
display total above certain number and display =?Utf-8?B?TUdE?= Microsoft Excel Misc 3 4th Mar 2006 05:03 PM
How can I display a cumulative total of hrs as hhh:mm Chinny Microsoft Excel Misc 2 6th Apr 2004 06:01 PM
display total records =?Utf-8?B?TWFyeQ==?= Microsoft Access 0 5th Apr 2004 11:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.