Results 1 to 5 of 5
  1. #1
    ameedoo3000 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Feb 2019
    Posts
    14

    font size in conditional formatting


    how can i change the font size of text box in conditional formatting in Access report

  2. #2
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Quick answer from the web:
    With Me.thetextbox
    If <condition> Then
    .FontSize = 12
    .ForeColor = vbRed
    .FontWeight = 700
    Else
    .FontSize = 10
    .ForeColor = vbGreen
    .FontWeight = 400
    End If
    End With

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,420
    you can't with conditional formatting. Gina's suggestion will work for single reports, but will affect all rows in a continuous report.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,913
    Ajax, are you confusing report with form?

    Code in report OnFormat event of the section containing the controls should dynamically set font based on parameter. Works for me. But only for PrintPreview or direct to printer. ReportView does not trigger Format event.
    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.

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,420
    think I am!

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

Similar Threads

  1. Replies: 12
    Last Post: 01-12-2019, 06:02 PM
  2. Anyway to increase font size
    By GraeagleBill in forum Access
    Replies: 1
    Last Post: 04-16-2018, 09:35 PM
  3. UI Font Size
    By bertsirkin in forum Access
    Replies: 4
    Last Post: 06-23-2017, 07:24 PM
  4. Treeview font size
    By charly.csh in forum Access
    Replies: 7
    Last Post: 03-23-2016, 05:09 PM
  5. MsgBox font size
    By GraeagleBill in forum Programming
    Replies: 4
    Last Post: 01-02-2013, 02:59 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