![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to number a report in a loop sequence numbering all pages 1-7. When 7 is reached the code needs to go back to 1 and restart the numbering process. It does not matter whether the report is 5 pages or 500 pages, the sequence must be kept. Any ideas on this or where I might find some leads to help me out? I am guessing that I am going to need a VBA module running being the report... Thank you so much in advance, Dave |
#3
| |||
| |||
|
|
I need to number a report in a loop sequence numbering all pages 1-7. When 7 is reached the code needs to go back to 1 and restart the numbering process. It does not matter whether the report is 5 pages or 500 pages, the sequence must be kept. Any ideas on this or where I might find some leads to help me out? I am guessing that I am going to need a VBA module running being the report... Thank you so much in advance, Dave |
#4
| |||
| |||
|
|
Dave: Yes, a little VBA The page number goes into the page footer . If you autogenerate a report with the wiazard you will see: ="Page " & [Page] & " of " & [Pages] in the footer. I don't know if you want number of pages. You can just remove that. The page footer has properties. IN properties there are events. You need to goto the on format event. It will look like this. Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer) End Sub You need to add one line that will make it look like this. Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer) If Page > 7 Then Page = 1 End Sub That will solve your problem. Good luck Ira Solomon On 12 May 2004 06:56:27 -0700, dbold001 (AT) yahoo (DOT) com (Dave B) wrote: I need to number a report in a loop sequence numbering all pages 1-7. When 7 is reached the code needs to go back to 1 and restart the numbering process. It does not matter whether the report is 5 pages or 500 pages, the sequence must be kept. Any ideas on this or where I might find some leads to help me out? I am guessing that I am going to need a VBA module running being the report... Thank you so much in advance, Dave |
#5
| |||
| |||
|
|
I need to number a report in a loop sequence numbering all pages 1-7. When 7 is reached the code needs to go back to 1 and restart the numbering process. It does not matter whether the report is 5 pages or 500 pages, the sequence must be kept. Any ideas on this or where I might find some leads to help me out? I am guessing that I am going to need a VBA module running being the report... Thank you so much in advance, Dave |
![]() |
| Thread Tools | |
| Display Modes | |
| |