Results 1 to 5 of 5
  1. #1
    Delfina is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Jan 2019
    Location
    Bartlesville OK
    Posts
    47

    Conditionally Formatting a Date in Access 2016


    I have no idea if this is possible. But is there a way to conditionally format a date to turn yellow if it is 75 days previous to today's date or turn red if it is 90 days previous to today's date. I have played around with right clicking on the field and trying to do it. It probably takes code that I know nothing about. I have created a sample database with just a few things in it to try it out.
    Attached Files Attached Files

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    No code required, check out Conditional Formatting on the ribbon (with a form or report in design view and the desired textbox selected).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  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,529
    By the way, you'd use Field Value Is, Less Than, and Date() - 90. Conditions are applied in order, so you'd want the older test first.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Delfina is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Jan 2019
    Location
    Bartlesville OK
    Posts
    47
    Thank you so much. It worked. That was so easy. I was trying it in different ways with these symbols. < > You guys are geniuses.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    Excellent, happy to help!
    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. Creat Search Form By Date, Access 2016
    By tihmir in forum Forms
    Replies: 7
    Last Post: 05-03-2018, 04:42 AM
  2. Access 2016 Report formatting issue
    By MiaAccess in forum Reports
    Replies: 3
    Last Post: 11-27-2017, 12:53 PM
  3. Conditionally formatting a mm/dd/yyyy*
    By Steve3415 in forum Reports
    Replies: 4
    Last Post: 03-11-2012, 02:36 PM
  4. Replies: 5
    Last Post: 05-02-2011, 11:02 AM
  5. Replies: 2
    Last Post: 04-20-2011, 01:50 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