Results 1 to 4 of 4
  1. #1
    Lynn is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2010
    Posts
    25

    Updating a table from a form

    Hi Everyone,
    I'm an access newbie...I built a form and one of the fields is called WaiverExpiry. This field displays an expiry date. When I was figuring out the date and keystroking the date into the field, the date would then appear on the appropriate table. Then I decided to let access do the math for me and I put in a calculation in the Control Source of the Waiver Expiry field. It looks like this:



    IIF([Timeframe]="6 months",DateAdd("m",6,[DateOfCommunication],DateAdd("m",12,[DateOfCommunication]))

    Where Timeframe and DateOfCommunication are also controls in the same form and the only two options are a 6 month or 12 month timeframe from the date of communication.
    Once access started doing the calculation, the expiry date no longer appears in the table. I think it's because I no longer have the control source as "WaiverExpiry" but how do I make sure the new date populates the table?

    Thanks,
    Lynn

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You are correct as to the "why". A solution:

    http://allenbrowne.com/casu-14.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Lynn is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2010
    Posts
    25

    Talking Updating a Table from a form

    Awesome! Thanks so much, appreciate your help!
    Lynn

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem Lynn, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. problem with the updating form
    By ngeng4 in forum Forms
    Replies: 32
    Last Post: 03-09-2010, 01:58 AM
  2. Updating one table with anothers contents
    By munkifisht in forum Access
    Replies: 0
    Last Post: 07-22-2009, 03:22 PM
  3. combo not updating form
    By cjamps in forum Forms
    Replies: 5
    Last Post: 04-14-2009, 12:00 PM
  4. Updating Table field from Form
    By Kunuk in forum Access
    Replies: 0
    Last Post: 02-26-2009, 11:41 PM
  5. Updating SQL server form Access form?
    By slash75 in forum Forms
    Replies: 1
    Last Post: 09-06-2008, 02:39 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