473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Stuck on using nextrecord, movelayout, printsection.

Hi All:

I have a main report that calls a sub-report. The sub-report is sorted by
MemberID. The MemberID Footer Section of the sub-report prints a Totals
line. The Detail Section of the sub-report prints detail records.
Typically if the detail records does not fill up the entire page, then the
Totals line is printed immediately after the last detail record. What I
want to do is to continue to print "dummy" records repeatedly after the last
detail record so that the Totals line is printed at the bottom of the page
instead of immediately after the last detail record.

I have created a second MemberID Footer section which contains an empty
textbox and which has the codes to print repeatedly the textbox as "dummy"
records. The layout of the sub-report is as follows:

Detail Section - Prints the detail records.
MemberID Footer #1 - Prints the dummy records repeatedly ( if necessary ).
MemberID Footer #2 - Prints the Totals line.

These are the codes in the "On_Print" event procedure of MemberID Footer #1:

NOTE:
gRowCounter = Keeps track of the number of detail lines printed.
gLINEFILLER = Declared as Const (example 36).
If the number of detail lines printed is less than gLINEFILLER, then the
dummy records will be printed repeatedly in order to pad the empty spaces.
'************************************************* ****
'* Add filler rows to pad the page's blank spaces.
'************************************************* ****
If gRowCounter < gLINEFILLER Then
gRowCounter = gRowCounter + 1
Me.NextRecord = False
Me.MoveLayout = True
Me.PrintSection = True
Else
'************************
'* Reset the parameters.
'************************
Me.NextRecord = True
Me.MoveLayout = False
Me.PrintSection = False
End If
Here is the problem:
When I run the sub-report by itself, it works to perfection. If the detail
records does not take up the entire page, then "dummy" records are printed
and the Totals line is printed at the bottom of the page. However when the
main report ( which calls the sub-report ) is run, only 4 "dummy" records
were printed and they never filled up all the empty spaces. Also, the
Totals line ( i.e. MemberID Footer #2 ) was never triggered.

Can someone please tell my how I can correct this problem or how I can do
this properly?

Thanks in advance

Andrew
Nov 12 '05 #1
0 2065

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Yeren | last post by:
We run a website with pages that are created using ASP. The website is used by different people from different networks. For some people, the pages are stuck. It looks like the were able to open...
0
by: pmud | last post by:
I have an application (ASP.Net using C# ) . I need to read records from the database based on the value entered by the user. Using Data Reader , I can see only one record in text boxes. But how do...
2
by: Bryan Field-Elliot | last post by:
We have a running server (v7.3) which, over time, seems to accumulate a bunch of "stuck" PostgreSQL instances which appear to be dead inside of a transaction. For example, "ps" reveals many of...
0
by: dfs9 | last post by:
In the article "Delete Duplicate Records From Access Tables" By Danny Lesandrini writes the following: This final suggestion is the most flexible and accurate. Given any table, it generates a...
0
by: Mark Phillips | last post by:
Hello, I am having a problem in which a file can get stuck open when a thread that is attempting to write to it gets aborted (ThreadAbortedException occurs). The log file gets stuck open until...
4
by: Astronomically Confused | last post by:
using System; using System.Collections; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading; class HttpProcessor { private Socket s;
4
by: Rico | last post by:
Hello, I'm looking for a way to force a pagebreak in code. I'm having a tough time, the first page formats properly until the condition is met and then forces a new page. The problem is, every...
11
by: Peted | last post by:
Im using c# 2005 express edition Ive pretty much finished an winforms application and i need to significantly improve the visual appeal of the interface. Im totaly stuck on this and cant seem...
3
by: NCRStinks | last post by:
Hi There Usually in the access forums, but trying to get a little more adventurous... Unfortunately not having much luck! Trying to achieve an "Outlook" type calender for a report in access....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.