• How to Calculate Rental Period? (A2k (9.0.4402) SR-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » How to Calculate Rental Period? (A2k (9.0.4402) SR-1)

    Author
    Topic
    #362793

    How to Calculate Rental Period?

    A2k (9.0.4402) SR-1

    I

    Viewing 1 reply thread
    Author
    Replies
    • #551827

      Hey John,

      I don’t always have the most elegant solutions, but try this…………………………

      Assuming the date of the agreement is named “testdate” the agreement fields would be:

      AgreementStDate=testdate+1
      AgreementEndDate=CVDate(DatePart(“m”,[testdate]) & “/” & DatePart(“d”,[testdate]) & “/” & (DatePart(“yyyy”,[testdate])+2))

      Both fields should have their format set to the appropriate Long Date, Short Date, whatever.

      Hope that helps!
      Kathi

    • #551945

      Hi John,
      You could use:
      DateAdd(“yyyy”,2,[datefieldname])-1
      Hope that helps.

      • #551965

        Thanks Kath & Rory

        That’s what I like about Microsoft, many ways to do the same thing, another solution for your bag of tricks:

        From: ([ExpireDate] + 1)

        To: DateAdd(“m”, 24, [ExpireDate])

        I learned alot from this rookie question.

        John

    Viewing 1 reply thread
    Reply To: How to Calculate Rental Period? (A2k (9.0.4402) SR-1)

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

    Your information: