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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|