+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting a date..

  1. #1
    Registered User
    Join Date
    09-20-2005
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office365
    Posts
    53

    Conditional Formatting a date..

    Hello,

    I have a table that has expiration dates for certain products, what I would like to do is set up conditional formatting in the Report where the date shows up in red if the expiration date is within 30 days from expiring. I've searched but only can find what I'm looking for in Excel, ie.

    =DATE(YEAR(TODAY()),MONTH(TODAY())+2,DAY(TODAY()))

    But that doesn't work in Access.

    Is this possible?

    thanks..

  2. #2
    Registered User
    Join Date
    09-20-2005
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office365
    Posts
    53

    Re: Conditional Formatting a date..

    Figured this out.. If I add conditional formatting

    between DateAdd("m",-1,Date()) and DateAdd("m",1,Date())

    it will work.

    also need to know how to flag if something is greater than the expiration date. I tried setting it to

    greater than Date(), but it will flag everything regardless of date.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,971

    Re: Conditional Formatting a date..

    Try less than Date(). You are looking for expiration dates that have occurred before today if I understand your issue.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1