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

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 1789
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
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...
1
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....
3
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...
2
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...
2
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...
1
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
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...
0
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...
0
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?...
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
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,...
0
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...
0
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...
0
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...

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.