Results 1 to 2 of 2
  1. #1
    nadermann is offline Novice
    Windows 10 Access 2021
    Join Date
    Mar 2023
    Posts
    1

    Need a line drawn under the fourth record of each Group

    I have a single level grouped report and I would like Access to insert a line (turn on the visible property of a line) under the fourth record of each Group. Can anyone help? I understand properties and how to insert code, but don't know how to write what I need. TIA!!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    Try:

    Have a textbox (can be not visible) with expression =1 and RunningSum property set to OverGroup then in OnFormat event for section line control is in VBA

    Me.Line0.Visible = Me.tbxCount MOD 4 = 0

    Event triggers only for PrintPreview or direct to printer.

    Alternative is to have another textbox stretched to full width of report with expression:

    =IIf([tbxCount] Mod 4=0,String(100, "_"),Null)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Stretching drawn items in Reports
    By platham@copper in forum Reports
    Replies: 4
    Last Post: 02-19-2020, 09:45 AM
  2. No relationship drawn connecting tables
    By vector39 in forum Database Design
    Replies: 1
    Last Post: 10-13-2017, 03:46 PM
  3. Replies: 1
    Last Post: 11-11-2014, 03:54 PM
  4. Replies: 4
    Last Post: 11-18-2013, 03:23 AM
  5. Replies: 2
    Last Post: 08-05-2010, 09:29 AM

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