Results 1 to 2 of 2
  1. #1
    sgarfunkel is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2013
    Posts
    1

    Formatting field to express months

    The form I am creating needs to be able to generate a report that gives me expiration dates on contracts which I have entered a start date. The form was originally created using a number for years instead and we can go as low as 6 months to an odd number like 35 months for the length of contract. Ex: It's calculating 35 for years instead of months. Is it possible to format a field so that it can calculate by number of months?



    So basically I need it to give me #length of contract x start date=expiration date

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use DateAdd function to calculate date for units other than day.

    expiration date = DateAdd("m",[length],[start date])

    Day is default unit so can be simply: [start date] + 5

    Use DateAdd to calculate with other time period units.

    There are other date and time functions you might find useful. Search Access Help or web.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Access 2010 to sql 2012 express
    By danieltaylor in forum SQL Server
    Replies: 3
    Last Post: 11-21-2012, 03:20 AM
  2. Replies: 5
    Last Post: 06-09-2012, 12:37 PM
  3. Using Access and Outlook Express together
    By Alexross93 in forum Misc
    Replies: 1
    Last Post: 05-18-2012, 06:16 PM
  4. Replies: 3
    Last Post: 11-04-2010, 04:11 PM
  5. Read Sql Express Table from MS Access
    By GUKGUK in forum Forms
    Replies: 1
    Last Post: 10-12-2010, 06:34 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