• Change date dynamically

    Author
    Topic
    #459492

    Good Day everybody!

    I have Report that has Date field and every year I am changing the criteria to the #>12/31/previous year#

    How can I make it dynamic so it will work without manual intervention? Thanks

    P.S. I have a form, I can add text box with =Format(Year(Date())) to get current year.
    However my DT field has date entered in a format as 4/20/2009.
    I will have to read last 4 characters and compare to the Year on the form…I can’t figure it out…

    Viewing 0 reply threads
    Author
    Replies
    • #1158711

      Try

      >DateSerial(Year(Date())-1,12,31)

      or

      >DateSerial(Year(Date()),1,0)

      • #1158835

        Thanks, I totally forgot about DateSerial…

        • #1160198

          I have another Date issue.
          I need to have my display date to be = to the last day of the month.

          Like today I would like to see April, 30 2009

          Thanks

          • #1160230

            You could use a text box with the following control source:

            =Date()-Day(Date())

            • #1160240

              Or you could use
              DateSerial(Year(Date()),Month(Date()),0)

    Viewing 0 reply threads
    Reply To: Change date dynamically

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

    Your information: