Prev: Calculate Subreport totals in a main report Group footer
Next: Grouping and Sorting a Report On Open Event
From: Rob on 3 May 2010 07:53 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
From: Al Campagna on 3 May 2010 09:02
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" <robertbaker1(a)hotmail.com> wrote in message news:26D061A2-4950-4587-B395-25D74B100B52(a)microsoft.com... > 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 |