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

How to add "Continued...." if rows go to next page or column on a report?

99 64KB
How to add a word "Continued...." or any other indicator if some of the rows go to next page or column on a report? Can anybody help me? Thanks in advance.
Feb 3 '22 #1
10 6098
NeoPa
32,556 Expert Mod 16PB
How about a TextBox or Label Control on your Page Footer that contains the text "Continued ..." which can be set up with this value by a Format or Print Event of the Report Header and then cleared (Set to .Visible = False or maybe even set the whole Section to .Visible = False) in the Format or Print Event of the Report Footer?

Let us know how you get on.
Feb 3 '22 #2
mshakeelattari
99 64KB
Sorry, I am not much clear. I further try to clarify my question. I have a report in MS Access in which records for a Month are very few while for another month, there are many records some of which may go to next page or next column. In such cases only, we need to indicate on the top of the next page/column as "Continued..." etc.
For example:
Expand|Select|Wrap|Line Numbers
  1. October-2021
  2. ============================
  3. Date            ColumnA      ColumnB
  4. ============================
  5. Date 1          xyz                    xyz
  6. Date 2          xyz                    xyz
  7. Date 3          xyz                    xyz
  8. ============================
  9. November-2021
  10. ============================
  11. Date            ColumnA      ColumnB
  12. ============================
  13. Date 1          xyz                    xyz
  14. Date 2          xyz                    xyz
  15. Date 3          xyz                    xyz
  16.  
  17. New Page
  18.  
  19. Cont.....
  20. ============================
  21. Date            ColumnA      ColumnB
  22. ============================
  23. Date 4          xyz                    xyz
  24. Date 5          xyz                    xyz
  25. =============================
  26. December-2021
  27. ============================
  28. Date           ColumnA      ColumnB
  29. ============================
  30. Date 1         xyz                    xyz
  31. Date 2         xyz                    xyz
  32. Date 3         xyz                    xyz
  33. ============================
  34.  
Now, I think, my problem is more clear. I need help in this situation.
Feb 4 '22 #3
isladogs
456 Expert Mod 256MB
One way of doing this is to use the report page count that usually goes in the footer e.g 2 of 5
In design view, that is written
Expand|Select|Wrap|Line Numbers
  1. =[Page] & " of " & [Pages]
To make use of that add a label lblCont to the PageHeader section with caption "Continued ..." and make it hidden by default.

Now add code to the PageHeader format event as follows

Expand|Select|Wrap|Line Numbers
  1. If Me.Page>1 Then Me.lblCont.Visible =True
The label will then be shown on every page except the first page.
Feb 4 '22 #4
NeoPa
32,556 Expert Mod 16PB
Wouldn't you want logic more like :
Expand|Select|Wrap|Line Numbers
  1. Me.lblCont.Visible = (Me.Page < Me.Pages)
Feb 5 '22 #5
isladogs
456 Expert Mod 256MB
Hi @NeoPa
When I do this in my own reports, I put a "Continued on next page ... " label at the bottom of each page EXCEPT the last.
With that setup, I use exactly the code you suggested.

However, the OP specified "In such cases only, we need to indicate on the top of the next page/column as "Continued..." etc.
I took that as meaning the OP wanted a label on all pages except page 1 ... hence the code that I posted
Feb 5 '22 #6
NeoPa
32,556 Expert Mod 16PB
Well spotted. You're quite right. Essentially he contradicts his first post - but clearly with language issues, so perfectly reasonable.

I would say though, that while your code would work for most cases, it would be preferable to set the value in all circumstances rather than to assume reports only ever progress in one direction. That way if a user returns to the first page they don't get caught out. Something like :
Expand|Select|Wrap|Line Numbers
  1. Me.lblCont.Visible = (Me.Page > 1)
Feb 5 '22 #7
mshakeelattari
99 64KB
Perhaps I am failing in clarifying my issue. I have a report about some items which have monthly data. Each month has certain number of records date-wise. If all the records of a month end up in the middle or bottom of the page, then its fine. However, in some months, the number of records are so large, or if a month starts near the bottom of the page and only few records come under it while the rest of the records go to the top of the next page, then it will need to mention "continued..." or any other indication on the top of the next page or else.

Feb 5 '22 #8
mshakeelattari
99 64KB

Feb 5 '22 #9
isladogs
456 Expert Mod 256MB
You should be able to decide which code to use from the above suggestions.
Try them out & see which you prefer. Adapt as necessary. Your choice.

Use monthly grouping in your report and add page breaks after each month's data.
You might also find this article useful in achieving your aim: Group Page Numbering in Reports. That will allow you to start each month's data as Page 1 of ....
Feb 5 '22 #10
NeoPa
32,556 Expert Mod 16PB
@mshakeelattari.
If you feel that the advice doesn't match what you need then you need to start by showing that. Not by explaining. Simply stating what you want without any sign that you've even started to work on the issue yourself will only cause people to think you want them to do all your work for you and are not prepared even to try something out and report back on how or why it doesn't match your requirement(s).

You have a lot here to work with. Show us you're interested in putting some work in and then we may understand you better.
Feb 6 '22 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: azizul khan | last post by:
I will be greatfull if any can help me to make a multi column page layout report in vb code. example : i have 500 idno. in database. i need to print all idno. 4 column in a page of dbreport....
0
by: Nunya Biznas | last post by:
I have a two column report that needs to have the word "continued" appear at the top of the 2nd column if the detail records are part of the group from the previous column. I have tried using a...
2
by: Marlene A. Roman | last post by:
Hello I have a question: I have a datagrid. I can make a specific search using some parameters I write and When a press a command button it calls an sp and returns the results of a search that...
2
by: Mattyw | last post by:
Hi I have a sqlcommand that returns all the rows in a column and then pass that to a datareader. I am new to VS.Net and so far I can only return the first row in the first column using ...
2
by: Paul | last post by:
I am taking over an exisitng app. I have the following function on one page: function check($v) { global $user; return $user->validate($v, $v); } And it reference $user on the next page. ...
1
by: Markw | last post by:
Hi folks, I probably used the term 'report' incorrectly. Sorry for that in advance. The below code produces a 2 column web page that shows in the first column a picture and the 2nd column shows...
0
by: mailsazmat | last post by:
Hi, Can any one help me out in this regard. I want to pass the data in the rows of the first column in the grid view to the next page in c#. i am able to pass the columns heading using the...
5
by: maury | last post by:
Hello, I have a DB table with data filled from a weather sensor probe, I have one row every 10 minutes and the data fields is not in DateTime format but in string format: yyyyMMddHHmm So for...
1
by: greatjuli | last post by:
Hi all, please I am quite new to PHP/ MySQL. I have got a table "members" and the DB name is "jutland". I have got columns - id, name, surname & email. I want to display 100 records with 5 rows per...
1
by: malika | last post by:
hi everyone my problem is this that i dynamically creted rows of table on the basis user input. Now each row contain textbox,comboxbox on selcting value from combobox n entering value in textbox from...
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: 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...
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
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...
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
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,...

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.