Results 1 to 6 of 6
  1. #1
    vanstuurwiel is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Pretoria - South Africa
    Posts
    3

    Question Automatic date

    Hi there,

    I am new to this forum and hope that someone will be able to help me.

    We have designed a database that has a field called " Date Completed"

    What we need is another field that would automatically add 730 Days to "Date Completed" and display the results in a field called "Expiry Date"

    Can anybody help with this?

    We have tried numerous things ourselves without success.



    Thanks

  2. #2
    Desstro's Avatar
    Desstro is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    185

    Question

    I am wondering the same question I think.

    I have a table with the fields:
    MT2AuditDate and
    MT2NextAuditDue.

    When an AuditDate is entered I want the table to auto date the NextAuditDue field with a date that is 90 days in the future.

    I have tried to enter [MT2AuditDate]+90 in the default value of the NextAuditDue field. Did not work.

    I will keep trying different things and If I come up with an answer I will be sure to let you know.

    I will keep checking in to see if someone else solves our riddle.

  3. #3
    vanstuurwiel is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Pretoria - South Africa
    Posts
    3
    Thanks a lot

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You both need to look at the DateAdd() function in VBA help. Keep in mind that you should *not* be storing this calculated value but simply creating it each time in a query.

  5. #5
    vanstuurwiel is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Pretoria - South Africa
    Posts
    3

    Question

    Quote Originally Posted by RuralGuy View Post
    You both need to look at the DateAdd() function in VBA help. Keep in mind that you should *not* be storing this calculated value but simply creating it each time in a query.
    Thank you. Is there any help for someone with NO VBA experience?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The real power of Access is in Queries and VBA. To not have these as tools to use is turning your back on greater than 50% of the features. Have you ever downloaded a database or opened the Example db that ships with Access and looked at and tried to understand any code that it contained? Crystal has a pretty complete site for learning. http://www.accessmvp.com/strive4peace/
    There are also tons of helpers on these Forums that can assist with an issue if you get stuck. We're not here to do the work but just give a shove in the right direction.

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

Similar Threads

  1. Follow up calls, put in automatic date
    By Loish in forum Access
    Replies: 1
    Last Post: 04-08-2010, 03:59 PM
  2. Automatic Date insertion
    By wbeau in forum Access
    Replies: 0
    Last Post: 03-10-2009, 12:51 PM
  3. Automatic Data Entry on a Specific Date
    By alanbrai in forum Programming
    Replies: 2
    Last Post: 11-14-2007, 05:15 PM
  4. Automatic Syncronization
    By Katada in forum Programming
    Replies: 0
    Last Post: 04-25-2006, 03:36 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