Results 1 to 4 of 4
  1. #1
    Pamoola55 is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2011
    Posts
    2

    Question Generated Date from previous cell, need option to override

    An add on to Doug's question,


    I have a form on Access with 2 fields. Date1 and Date2. Usually Date2 is 1 year ahead Date1. So I would like an expression that when I type Date1, Date2 would be automatically filled with Date1 + 1 Year.


    I have several fields that are calculated dates from previous fields. Here's the problem: there are times that I need to override those cells with either a blank (backspace or delete) cell, or to write over the calculated date with a different date. Possible?? How?? (simple to moderately-simple answer needed). Thx.
    Last edited by Pamoola55; 02-02-2011 at 07:50 PM.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You'll notice I moved your post to a new thread. By way of an answer, if the "calculated" dates are calculated in the AfterUpdate event of the 1st control then you can easily update the "calculated" control.

  3. #3
    Pamoola55 is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2011
    Posts
    2
    OK..I'm going to update my "simple to moderately-simple answer needed" to "really simple answer needed."
    thanks for putting the post where it needs to go.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    When the user changes a value in a control on your form and moves the focus to another control, an AfterUpdate Event fires for the control you are leaving. You can put code in this event that will use the value of the control you are leaving to update another control on your form with a calculated value. If you move to the control with the now calculated value in it, you can change it to anything you want. Need more assistance? Just give us more details and we can supply the code if that is what you need.

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

Similar Threads

  1. Subtract From Previous Record Using a Date
    By txrules in forum Queries
    Replies: 1
    Last Post: 12-30-2010, 02:10 AM
  2. How to validate dynamically generated text box
    By TheFuzzball in forum Forms
    Replies: 1
    Last Post: 10-24-2009, 10:49 AM
  3. From which query is the report generated
    By rukmal82 in forum Reports
    Replies: 6
    Last Post: 09-30-2009, 09:28 AM
  4. Populate date from previous record
    By Lianes in forum Access
    Replies: 3
    Last Post: 09-19-2009, 03:42 PM
  5. Can we post Access cell data to Excel cell properties?
    By Zethro in forum Import/Export Data
    Replies: 1
    Last Post: 12-13-2005, 08:42 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