473,796 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2076

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

Similar topics

3
2357
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 the page, but it is not displayed on their browser. We think that it might be something to do with their proxy. Does anybody know how to solve this problem?
0
1693
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 i view the next record in the text boxes?? I found out that using DataReader.NextRecord() , it is possible. Is the following code correct? My code :: System.Data.SqlClient.SqlDataReader d1; private void Page_Load(object sender,...
2
2981
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 these: postgres 17683 0.0 0.4 7376 1032 ? S Nov13 0:21 postgres: bryan sourceid 127.0.0.1 idle in transaction As admin, I'd like to run "psql" and peer inside the system (using the Statistics Collector) to see which queries have...
0
4512
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 recordset of appropriate fields (excluding memo and binary image fields) and dynamically loops through the fields' collection to perform the recordset compare. In this example, two recordsets are used, one being a clone of the other. When a...
0
1916
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 the process is shut down (cannot delete file from Windows Explorer, for example). My test application stops execution with: An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll Additional information: The process...
4
8749
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
21580
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 page after that forces a new page after a single record. I'm trying to force the page after 12 records. The code is pretty simple. I have a footer called "BreakFooter" that i have associated with the ID field, so each detail record is unique....
11
3388
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 to work out how to start on a solution. I have of course used a varienty of componets, mostly radio buttons with "button" appearence.
3
1072
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. Very similar to the example on http://www.access.hookom.net/Samples.htm Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)Dim TopMargin As Long Dim OneMin As Long Dim DayStart As Date Dim StartTime As Date
0
9684
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10017
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9055
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7552
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5445
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.