473,769 Members | 4,052 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reports: continued page footer

I have a report that's basically a calendar. I need to get a footer
that shows the range of dates on the current page (a start date and end
date). I know how to do that by putting a field in the header and using
some VB code to assign footer values.

What I don't know is how to show the start date on the second and
subsequent pages to reflect the previous page's end date. The dates are
based on a record's date field, so every day of the month is not
accounted for.

--------------------------------------
Example of what I currently have:
(Page 1)
1/1/04 to 2/15/04

(Page 2)
2/20/04 to 2/25/04

(Page 3)
3/2/04 to 4/1/04

--------------------------------------
Example of what I want:
(Page 1)
1/1/04 to 2/15/04

(page 2)
2/15/04 to 2/25/04

(page 3)
2/25/04 to 4/1/04

-------------------------------------

So, the problem is getting page 2 and 3 to start at the previous page's
end date. Any suggestions?

Nov 13 '05 #1
3 1801
John wrote:
I have a report that's basically a calendar. I need to get a footer
that shows the range of dates on the current page (a start date and end
date). I know how to do that by putting a field in the header and using
some VB code to assign footer values.

What I don't know is how to show the start date on the second and
subsequent pages to reflect the previous page's end date. The dates are
based on a record's date field, so every day of the month is not
accounted for.

--------------------------------------
Example of what I currently have:
(Page 1)
1/1/04 to 2/15/04

(Page 2)
2/20/04 to 2/25/04

(Page 3)
3/2/04 to 4/1/04

--------------------------------------
Example of what I want:
(Page 1)
1/1/04 to 2/15/04

(page 2)
2/15/04 to 2/25/04

(page 3)
2/25/04 to 4/1/04

-------------------------------------

So, the problem is getting page 2 and 3 to start at the previous page's
end date. Any suggestions?


I have no idea if this will work but it makes sense it would. Let's say
you add 2 fields; Date1 and Date2 to the page footer. In the OnFormat
event of the report enter something like
Me.Date1 = [DateFrom] 'whatever the FromDate field is called
Me.Date2 = [ToDate]
Nov 13 '05 #2
Salad, there is only one date field in the record...so I'm not sure
what [ToDate] would be referring to. (I'm assuming you thought there
were two date fields in the record: FromDate and ToDate.
Or, maybe I'm just confused a bit??

Nov 13 '05 #3
John wrote:
Salad, there is only one date field in the record...so I'm not sure
what [ToDate] would be referring to. (I'm assuming you thought there
were two date fields in the record: FromDate and ToDate.
Or, maybe I'm just confused a bit??


Yes, I misunderstood. OK...I still think you need some sort of flag.
For example, create a boolean checkbox, invisible, in the header with a
default value of False. Maybe the name is HeaderSet. In the OnFormat
event of the header set HeaderSet to false. Ex:
Me.HeaderSet = False

In the Detail's OnFormat enter
If Not Me.HeaderSet Then
'this will get the beginning date of this page
Me.Date1 = [datefield in detail band]
Me.Headerset = True
Endif
'now get the date. the last one printed in detail will
'be the ending date
Me.Date2 = [datefield in detailband]

Then in the footer have 2 fields; Date1 and Date2. That should print
your date range. If it doesn't work in the OnFormat, change to the OnPrint.

I'm sure there are other ways to do this. This seems easy enough to do.
Nov 13 '05 #4

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

Similar topics

1
302
by: Louis | last post by:
Hi, I have Page Header and Report Footer in my report, the Page Header display its content on every page. But for the Report Footer, I don't want to display the Page Header, or any method to add a page at the end of report without displaying the Page Header? Thank you.
1
1309
by: Great_milenko | last post by:
How can I make a report that puts a group section and its reference detail section on 1 page and the next group section on a different page, example I want to print all classes with its students. now I want every class and its students on seperate pages
3
1398
by: Lumpierbritches | last post by:
Thank you in advance for any and all assistance. I'm trying to create a report that will work similar to the label wizard in Access. I have a premade form I'm attempting to fill with data from the db. I can manually make the information fit, by making the report the full 8.5" x 11", however, when I attempt to size the report so that an individual record prints in each one, the sizing is all off. Is there a secret for dividing up the report...
2
1507
by: Lumpierbritches | last post by:
Thank you in advance for any and all assistance. I'm trying to create a report that will work similar to the label wizard in Access. I have a premade form I'm attempting to fill with data from the db. I can manually make the information fit, by making the report the full 8.5" x 11", however, when I attempt to size the report so that an individual record prints in each one, the sizing is all off. Is there a secret for dividing up the report...
2
1920
by: Darryl Kerkeslager | last post by:
As the subject above hopefully makes clear, I want to do several reports, "with lots of fields not otherwise in database". These reports also have variable-length text. I have defined the following options (all users have Office 2000): 1. All Access solution. This appears to involve creating forms to enter data that is just put into a report, and never saved - an exercise in wasted development time, to my thinking. Also, the...
1
2349
by: Alberto | last post by:
How can I do in Crystal Reports to show the page footer in all the pages but not in the last one? Thank you
3
5126
by: joelpollock | last post by:
I'm having trouble continuously page numbering a large report in MS Access. The report is made up of three separate Access reports which I join together at the end. In the past I have opened the reports and viewed them to see how long they are then go in and manually type the page number and total page number. I am aware of the and lines of code but this resets with each new report.
0
1562
by: retrorocket | last post by:
I've searched and searched, I could really use some suggestions. I have a Crystal Report in report designer that contains a Report Header, a Page Header, and a Detail section. The first page should print three records from the Detail section and then be followed by signature box (plain text, contains no data). If there are more than 3 records in detail, then the next pages should continue showing records but not the signature box. This...
0
1108
by: pratik.best | last post by:
Hi, my problem is very simple yet interesting. In Crystal Reports the page footer appear at the bottom of the page, but I want it to appear just after the contents of the page. How can I do that? Actually the problem is that I have created a software for a pathology lab and the report requires signature on each page, yet the signature should be just after last line on the page. I cannot use group footer or report footer for this task. I...
0
9423
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
10215
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
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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...
1
7410
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
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5307
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.