473,395 Members | 1,526 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,395 software developers and data experts.

Adding additional lines / empty records on a report

Hello,

I'm formatting a report based on an existing controlled document. The
document that I'm duplicating has a number of lines that the user fills our
manually, but the database version of this document will fill the fields
with data rather than the user hand writing entries. The problem I'm
running into is when the last record prints, there are no more additional
lines (i.e. if the document has 15 lines to be filled out, and if I print
from Access with only 10 records entered, 10 lines is all I get.).

I'd like to complete the additional lines using empty records (5 records per
the previous example) in order to print the report exactly as the original
document appears. I can create a work around by using a table with 15 empty
fields and rig it up to use any extra space to add the lines per page, but
isn't there an easier way? I was hoping there would be some way to fool the
formatting of each section into thinking there is still a record that needs
formatting until it reaches the end, but I have no idea how to do that if it
can be done.

Any help would be much appreciated.

Thanks!
May 11 '06 #1
2 5046
Rico wrote:
Hello,

I'm formatting a report based on an existing controlled document. The
document that I'm duplicating has a number of lines that the user fills our
manually, but the database version of this document will fill the fields
with data rather than the user hand writing entries. The problem I'm
running into is when the last record prints, there are no more additional
lines (i.e. if the document has 15 lines to be filled out, and if I print
from Access with only 10 records entered, 10 lines is all I get.).

I'd like to complete the additional lines using empty records (5 records per
the previous example) in order to print the report exactly as the original
document appears. I can create a work around by using a table with 15 empty
fields and rig it up to use any extra space to add the lines per page, but
isn't there an easier way? I was hoping there would be some way to fool the
formatting of each section into thinking there is still a record that needs
formatting until it reaches the end, but I have no idea how to do that if it
can be done.

Any help would be much appreciated.

Thanks!


The properties that will assist you are MoveLayout, NextRecord,
PrintSection. Here's an example

Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
If Me.MoveCount < intLineCnt Then
Me.MoveLayout = True
Me.PrintSection = False
Me.NextRecord = False
Me.MoveCount = Me.MoveCount + 1
Else
Me.MoveLayout = True
Me.PrintSection = True
Me.NextRecord = True
End If
End Sub

Private Sub PageHeader_Format(Cancel As Integer, FormatCount As Integer)
Me.MoveCount = 0
intLineCnt = CalcLinesToMove()
End Sub

In the above example I wanted to moved down so many lines until
MoveCount was equal to intLineCnt. I created a field called MoveCount
with no control source and MoveCount was reset on each page.

You'll have to play with those properties to get it to do what you want.
May 11 '06 #2
Thanks Salad, that's excellent. Works like a charm.
"salad" <oi*@vinegar.com> wrote in message
news:7A***************@newsread4.news.pas.earthlin k.net...
Rico wrote:
Hello,

I'm formatting a report based on an existing controlled document. The
document that I'm duplicating has a number of lines that the user fills
our manually, but the database version of this document will fill the
fields with data rather than the user hand writing entries. The problem
I'm running into is when the last record prints, there are no more
additional lines (i.e. if the document has 15 lines to be filled out, and
if I print from Access with only 10 records entered, 10 lines is all I
get.).

I'd like to complete the additional lines using empty records (5 records
per the previous example) in order to print the report exactly as the
original document appears. I can create a work around by using a table
with 15 empty fields and rig it up to use any extra space to add the
lines per page, but isn't there an easier way? I was hoping there would
be some way to fool the formatting of each section into thinking there is
still a record that needs formatting until it reaches the end, but I have
no idea how to do that if it can be done.

Any help would be much appreciated.

Thanks!


The properties that will assist you are MoveLayout, NextRecord,
PrintSection. Here's an example

Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
If Me.MoveCount < intLineCnt Then
Me.MoveLayout = True
Me.PrintSection = False
Me.NextRecord = False
Me.MoveCount = Me.MoveCount + 1
Else
Me.MoveLayout = True
Me.PrintSection = True
Me.NextRecord = True
End If
End Sub

Private Sub PageHeader_Format(Cancel As Integer, FormatCount As Integer)
Me.MoveCount = 0
intLineCnt = CalcLinesToMove()
End Sub

In the above example I wanted to moved down so many lines until MoveCount
was equal to intLineCnt. I created a field called MoveCount with no
control source and MoveCount was reset on each page.

You'll have to play with those properties to get it to do what you want.

May 11 '06 #3

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

Similar topics

2
by: taccea | last post by:
I want to draw vertical lines in a report encompassing the header, line item and footer sections. Drawing them with the line tool does not connect them exactly some times (perfect contiguous...
2
by: dixie | last post by:
I have a report which is printed daily. It is a list of people. A person can be put on this list for one day, which is easyily achieved from a simple form. My problem is that a person can also...
3
by: Randy Harris | last post by:
I can swear I saw an answer to this a while back but can't locate it. I need to pad lines on a report (print 20 lines, even if there are only 15 records - the last 5 lines blank). Any...
2
by: ET | last post by:
Hi! I'll need help on what todo with this information in table... There has to be a unique on one column (Item ID, for inventory purpose) but in many cases that ID is not known... thus, many...
1
by: RSH | last post by:
Hi, I have a situation where I need to add several "Hidden" properties to list items in a dropdownlist. By default the DropDownList item has two properties with regards to the listitems...
69
by: kabradley | last post by:
Alrighty Guys and Gals, I have another question that I hope you all can help me with. I have a report that uses a cross-tab query as its record source. This cross-tab query is getting all of its...
4
by: ramaswamynanda | last post by:
Hello, I have an application in Access where I have developed about 10 reports. These have been working for a while and produce data properly. I recently tried exporting the report, from the...
1
by: mlangley | last post by:
Hi there. I am trying to figure out a way to create a series of empty records in a database (ACCESS 2003). Basically, the table has 10 years of information by id. However, if there is no ID, then...
2
by: puT3 | last post by:
How can I make the report do not show any empty records? For example, in this table do not has address...I want the report only shows company that has address
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.