Results 1 to 3 of 3
  1. #1
    jtm013 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    117

    Help with calculated field.

    Hello, I have what i feel should be an easily answered question, but so far I have failed to find a solution.

    I have a calculated field in my table the field is called 'nextduedate'. This field is calculated by taking the value from my field 'lastcompletedate' and progressing that date by whatever interval (1 month, 6 months, annually, etc) is provided in field 'terminterval'. The problem I have is that if my lastcompletedate shows 5-5-15 and the interval is 1 month then it will calculate out to 6-5-15 in nextduedate. The reason this is a problem is that the items being measured are due by month and not a specific day. I would like the calculated field to show it due on the last day of the month.

    Is this possible? If so how? Thank you in advance for your assistance.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Given any Date, you can get the last day of that month like this:
    Code:
    DateSerial(Year([DateField]),Month([DateField])+1,0)
    So you should be able to incorporate that logic into your formula.

  3. #3
    jtm013 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    117
    That did it thank you!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 12-30-2014, 01:32 PM
  2. Replies: 4
    Last Post: 03-20-2014, 03:52 PM
  3. Replies: 2
    Last Post: 12-15-2013, 02:29 AM
  4. Replies: 1
    Last Post: 04-21-2013, 03:20 PM
  5. Replies: 3
    Last Post: 02-13-2013, 10:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums