Results 1 to 3 of 3
  1. #1
    Esmatullaharifi is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    40

    Question VBA codes with repeated rows in report

    Hi!
    I have used
    Code:
    If  Len(Result.Value) > 7 then
    Result.TopMargin = 0
    End If
    vba code but it is applying to all rows whenever one of rows located in repeated area of report make condition true. How to solve this issue.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Use additional details. If you format a control, the property will be represented each time the control is displayed in that group/detail.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    As answered elsewhere:

    I'm not clear on what you're trying to do, but code like that would need to be in the format event of the detail section, and would need an Else clause to set the property when the value wasn't greater than 7.

    cross posters
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Repeated Sum f each date in Report
    By Youngfighter in forum Reports
    Replies: 2
    Last Post: 12-20-2014, 09:17 AM
  2. Repeated information
    By migaccess in forum Access
    Replies: 2
    Last Post: 12-05-2014, 09:13 PM
  3. Display Unique Zip Codes From Query in Report
    By dascoli in forum Reports
    Replies: 2
    Last Post: 08-22-2014, 08:28 PM
  4. Repeated rows in query-form
    By astraxan in forum Forms
    Replies: 2
    Last Post: 05-23-2010, 10:25 PM
  5. Combo Box without repeated values
    By SCFM in forum Access
    Replies: 2
    Last Post: 02-20-2010, 05:57 PM

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