• Change colour of text in Report if date overdue (97)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Change colour of text in Report if date overdue (97)

    Author
    Topic
    #371749

    Hello there

    I am sure I have seen somewhere that this can be done, but you know what it’s like.. when you want that something you saw, you cant find it!!

    In my report I want to have the field called “Due Date”. I want the text to be Red if the date is equal to or less than to todays date. (meaning overdue) If colour is not possible, bold or underline?

    Is this possible?

    Regards

    Kerry Australia

    Viewing 0 reply threads
    Author
    Replies
    • #591936

      In the On Format of the detail enter the following code :

      If Me.[Due Date] <= Now() Then
         Me.Myfield.ForeColor = VbRed
      Else
         Me.Myfield.ForeColor = VbBlack
      End If

      Replace Myfield with the name of the field you want to be red.

    Viewing 0 reply threads
    Reply To: Change colour of text in Report if date overdue (97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: