Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941

    I still don't know how to code the conditional formatting VBA
    see post #3, but this is a one time exercise. why spend 3-4 times as long developing and testing code you are going to use once.

  2. #17
    hehrerh is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2017
    Posts
    35
    Quote Originally Posted by June7 View Post
    In Detail section Format event set control properties. Like:

    Me.controlname.FontBold = <your criteria that evaluates to true/false>

    So if you have 60 controls and you want to manage 4 property settings - well you do the math on how many lines of code to write.
    Frankly a simple loop, 20 or 30 lines max, would accomplish this. You don't need code for each field just a routine that runs for every text control on the report.

  3. #18
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    I presume that is a statement, not a question - example code has been provided

    I don't believe I can help further so good luck with your project

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Yes, I expect a loop could be employed. It would require a structure that addresses only textboxes. More than one way to accomplish. Do you have code? If not, iterating controls has been topic of numerous discussions. Do research and when you have code with specific issue, post question.

    Ajax, the code would run every time report opens.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Conditional report format in vba
    By skyatis in forum Reports
    Replies: 4
    Last Post: 01-20-2017, 01:00 AM
  2. combobox + conditional format
    By markjkubicki in forum Forms
    Replies: 4
    Last Post: 06-24-2014, 04:25 PM
  3. Replies: 3
    Last Post: 08-02-2013, 12:18 PM
  4. Replies: 1
    Last Post: 06-22-2012, 03:33 PM
  5. Advanced Report Conditional Format
    By MrHoliday in forum Forms
    Replies: 2
    Last Post: 08-25-2010, 11:58 PM

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