• Can I access an internal print line counter in VBA (Access 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Can I access an internal print line counter in VBA (Access 2003)

    Author
    Topic
    #406972

    I am generating an Access report. I need to make various VBA decisions based upon the current print line

    Viewing 3 reply threads
    Author
    Replies
    • #847769

      I’m not aware of an internal counter that is exposed to the user. You can use the Top property of the Report – it represents the distance (in twips, 1440 twips = 1 inch) between the top of the page and the top of the current section.

    • #847770

      I’m not aware of an internal counter that is exposed to the user. You can use the Top property of the Report – it represents the distance (in twips, 1440 twips = 1 inch) between the top of the page and the top of the current section.

    • #847775

      That isn’t how Access does it. The report is formatted multiple times in order to determine whether a “keep together” section will fit on the current page. To my knowledge, there is no line counter involved at all, only the Top property and the heights of the footers.

      • #847783

        Thanks Hans and Charlotte,
        Top sounds like a good idea if I can get it to work. I did some experiments displaying Top

        • #847792

          As I mentioned in my reply, you must use the Top property of the report itself, i.e. Me.Top. What it refers to depends on where you use it. If you use Me.Top in an event of the Detail section, it refers to the distance of the top of the detail section to the top of the page. You can check if this is above, or below, a set limit.

        • #847793

          As I mentioned in my reply, you must use the Top property of the report itself, i.e. Me.Top. What it refers to depends on where you use it. If you use Me.Top in an event of the Detail section, it refers to the distance of the top of the detail section to the top of the page. You can check if this is above, or below, a set limit.

      • #847784

        Thanks Hans and Charlotte,
        Top sounds like a good idea if I can get it to work. I did some experiments displaying Top

    • #847776

      That isn’t how Access does it. The report is formatted multiple times in order to determine whether a “keep together” section will fit on the current page. To my knowledge, there is no line counter involved at all, only the Top property and the heights of the footers.

    Viewing 3 reply threads
    Reply To: Can I access an internal print line counter in VBA (Access 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: