Results 1 to 5 of 5
  1. #1
    Lazor78 is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Location
    Sheffield
    Posts
    7

    Date Calculation

    Hi

    I have a simple DB with 7 forms.

    In 4 of hte forms i would like to be able to enter a date in a field and then a date 1 month from that be entered in the field below it. There is a column for it in the table alreaady.

    I have created the expression [Date Sent]+31 as the default value and it works for hte 1st record but then only populates every record (300+) with that date.

    Is there a simple fix?

    Thanks

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Here is an example attached using the dateadd function

  3. #3
    Lazor78 is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Location
    Sheffield
    Posts
    7
    Thats great, thanks a lot.

  4. #4
    Lazor78 is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Location
    Sheffield
    Posts
    7

    Continued issue

    Hi

    Will this automatically update in the table, so that when i run a query it will pull through these dates?

    Thanks

  5. #5
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    No. Calculations are not to be stored in tables. If you want the calculation displayed as part of a query, then use the dateadd function in a new field in the query as an expression and it will always be accurate based upon the date in the first field.

    Look here on how to put it in a query.

    http://www.techonthenet.com/access/f...te/dateadd.php

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

Similar Threads

  1. Date Calculation
    By mrkaye in forum Forms
    Replies: 5
    Last Post: 11-11-2010, 01:10 AM
  2. Date Calculation
    By mrkaye in forum Forms
    Replies: 4
    Last Post: 11-10-2010, 10:42 AM
  3. Date Calculation
    By mrkaye in forum Forms
    Replies: 4
    Last Post: 11-09-2010, 06:52 PM
  4. Date Calculation ?
    By techexpressinc in forum Queries
    Replies: 2
    Last Post: 06-24-2009, 09:02 PM
  5. Date Calculation -- HELP!
    By klaauser in forum Forms
    Replies: 0
    Last Post: 12-22-2008, 02:14 PM

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