Results 1 to 5 of 5
  1. #1
    newvb is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    3

    AfterUpdate not firing

    Hi - Two of the fields in my table are called Beginvalue and EndValue.


    The first thing that I do on the form is to make the EndValue of the last record the new BegValue (bound field) on the form. I have a query which gets the previous record from the table, and I run a DLookup against the query to get the last EndValue. This is entered into an unbound field (getBeginValue). In the AfterUpdate event of getBeginValue I use the code Me.BegValue = the last end value in the unbound field. The BegValue is not updating. I tried to fire the AfterUpdate from the next field on the form by using using the Call getBeginValue_AfterUpdate, but that is not working. (For a different field on the form I got the AfterUpdate to fire to update the field with a calculated value.) I'm stumped, and would appreciate some help on this. Thanks.

  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
    Is your db in a Trusted Location? http://www.btabdevelopment.com/ts/2010TL

  3. #3
    newvb is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    3
    Yes it is.

  4. #4
    newvb is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    3
    I was looking through my database and discovered that there were some blank fields for the BegValue, which I filled in. Now the BegValue on the form is updating with the previous EndValue. So, no update because there was no previous value in the table to update with. Thanks for responding to my post.

  5. #5
    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
    That's great! I marked this thread as Solved for you.

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

Similar Threads

  1. AfterUpdate event help
    By 10 Gauge in forum Forms
    Replies: 11
    Last Post: 09-08-2011, 10:04 AM
  2. Understanding afterupdate
    By MAM8433 in forum Access
    Replies: 8
    Last Post: 05-23-2011, 02:05 PM
  3. Form level mouseup event not firing
    By Philhoop in forum Forms
    Replies: 3
    Last Post: 07-22-2010, 09:41 AM
  4. AfterUpdate not updating
    By P5C768 in forum Programming
    Replies: 6
    Last Post: 06-10-2010, 02:31 PM
  5. Replies: 1
    Last Post: 05-31-2010, 05:18 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