Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Thanks! Awesome group. I put out a simple question in the access/vba forum that I couldn't find answered on technet or anywhere else on the web and it was answered the same day!!..."

Geography

Where in the world do Tek-Tips members come from?
nagendra (Programmer)
10 Jul 00 7:57
Hi,

  I am Nagendra, i have some problem in my report.
I want print grand total at the last page and the fixed place. it should print at same place irrespective of no.of records.


regards
Nagendra P.
Helpful Member!  gregburningham (Programmer)
13 Jul 00 12:02
Firstly you need to set-up a query in the 'before-report-trigger' to
count how many records your main query will bring back.  

The following query is in my 'before-report-trigger' and immitates my
main query ..

select count(*)
into :p_no_recs
from customer;

Eg. I have a main query that brings back 105 records therefore :p_no_recs = 105

In my main query I have a formula column as follows:

function CF_1Formula return Number is
begin
  :p_count := :p_count + 1;
return (:p_count);
end;


I have a summary column cs_grand_tot, at report level enclosed by a frame M_1, print condition MUST BE all

On M_1 I have a format trigger:-

function M_1FormatTrigger return boolean is
begin
if :p_count = :p_no_recs then
  return (TRUE);
else
  return (FALSE);
end if;
end;

Now for the important bit ... if you want the grand total to appear in a fixed position anywhere on the last page you must place the frame above the main query frame ... and OVERLAPPING it (not outside or inside)

It must not sit within the main query's frame becase this causes the
grand total to appear after the main frame records.

It works, give it a go !

Cheers
Greg B.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close