Results 1 to 5 of 5
  1. #1
    Ajay1967 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Location
    Suva, Fiji
    Posts
    3

    Question page counter to check every 3pages printed

    Hi,


    I am creating OMR (OPTICAL MARK RECOGNITION) on my reports
    I need a counter to count every 3 pages and make my Line object visible.
    eg:

    if last page count = 3 then line01.visible = true and reset page count to 0
    count another 3 pages then line01.visible = true and reset page count to 0
    etc

    Your help will be very much appreciated. Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would think modulus math would work here:
    Code:
    If Page MOD 3 = 0 Then
       line01.visible = true
    Else
       line01.visible = False
    End If
    ...in the OnPrint event of the section where you've placed the Line object.

  3. #3
    Ajay1967 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Location
    Suva, Fiji
    Posts
    3
    Cheers Man. Just solved it for me.Have a great day

  4. #4
    Ajay1967 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Location
    Suva, Fiji
    Posts
    3
    Thanks RuralGuy

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Glad we could help.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need counter to print
    By miziri in forum Access
    Replies: 1
    Last Post: 05-11-2011, 02:07 AM
  2. Incrementing Counter in Query
    By Rawb in forum Queries
    Replies: 9
    Last Post: 02-10-2011, 02:58 PM
  3. lap Counter
    By challenger in forum Access
    Replies: 4
    Last Post: 07-06-2010, 02:20 PM
  4. How to print on pre printed check list
    By captgnvr in forum Reports
    Replies: 4
    Last Post: 05-13-2010, 08:15 AM
  5. Total records printed
    By LesleyA in forum Queries
    Replies: 3
    Last Post: 08-04-2008, 03:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums