Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a counter

Status
Not open for further replies.

antmoe3

Programmer
Feb 24, 2006
32
US
Version 10

I need to create a loop that would

Show the number 1 on page 1
Show the number 2 on page 2
Show the number 1 on page 3
Show the number 2 on page 4
Show the number 1 on page 5
Show the number 2 on page 6
Etc..

How do i do this?
 
Create a formula:

if remainder(pagenumber,2) = 1 then 1 else 2

If the page numbering corresponds to a group, you can also just go to the section expert and check "reset page number after" on the group footer.

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top