Results 1 to 3 of 3
  1. #1
    Tyler is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2014
    Posts
    2

    Automatically populate expiration date

    I have a form with a date of when training was completed. I would like to set it up so it displays the date of expiration which is one year from when the training was complete. please help by by telling me where the "code" would go and what the best way of doing this is. Thank you

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    in the ON EXIT event of your training completed date (let's call the field TR_Complete) run something like (assuming the expiration is a field named TR_Expires)

    TR_Expires = Dateadd("y", 1, [TR_Complete])

    I would also add that this is a calculated value and you really do not need to store calculated values on a table. If you are, for instance, running a report about who is going to be due for training in the next month you can run a query based on their most recent training complete date to do that without needing to store the extra piece of data.

  3. #3
    Tyler is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2014
    Posts
    2
    Thank you for your help

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

Similar Threads

  1. Replies: 4
    Last Post: 10-08-2013, 11:39 AM
  2. Expiration Date
    By nhoover in forum Database Design
    Replies: 5
    Last Post: 03-14-2013, 10:08 PM
  3. Databse Products Expiration Date
    By PATRICK in forum Database Design
    Replies: 9
    Last Post: 02-05-2013, 08:10 PM
  4. Query for upcoming expiration date
    By jones in forum Queries
    Replies: 2
    Last Post: 05-16-2012, 02:18 AM
  5. Expiration Date criteria
    By NISMOJim in forum Queries
    Replies: 9
    Last Post: 07-22-2011, 11:22 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