Results 1 to 3 of 3
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Changing an event's update sequence

    in the attached file that contains the current db, I changed the combo box in tblAttendance.

    The VBA code procedure should come after_update not before _update as it does now. I thought it would be as easy as open the after_update tab and move copied code from before_update tab to after_update and perform some editing making it suitable for an after_update event. I was wrong. It seems there is more to do than that.

    I must make some additional changes. That is what this post is about. What must be considered when changing this from before to after update?

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed
    Attached Files Attached Files

  2. #2
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, this works now. I got this one.

    I did have a question in that should all combo boxes when connected with VBA code, do it as an after_update event?

    Any help appreciated. thanks in advance.

    Respectfully,

    Lou Reed

  3. #3
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    If the acceptance of the selected value is dependent on other conditions, use the BeforeUpdate event; if not, use the AfterUpdate event. BeforeUpdate is used primarily to validate data input/selection, and AfterUpdate is used primarily to execute code based on the selection.

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

Similar Threads

  1. Changing value of bound field on event
    By Ganymede in forum Programming
    Replies: 5
    Last Post: 02-17-2016, 12:27 PM
  2. Replies: 7
    Last Post: 05-08-2014, 10:34 AM
  3. Replies: 4
    Last Post: 02-27-2014, 03:39 PM
  4. Replies: 4
    Last Post: 05-18-2011, 03:24 PM
  5. Changing value of a field after an event.
    By mikethebass in forum Access
    Replies: 1
    Last Post: 06-16-2010, 04:42 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