+ Reply to Thread
Results 1 to 3 of 3

Thread: Conditional Formatting a date..

  1. #1
    Registered User
    Join Date
    09-20-2005
    Posts
    20

    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
    Posts
    20

    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
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,155

    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

+ 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.2.0