Results 1 to 3 of 3
  1. #1
    Brigitt is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    5

    how to created afterupdate event

    I am quite new in access, would like to ask for your help in the following.
    I am now building a form, I have/had to set up many combo boxes to display many types of selections.
    In from view, when I select from Combo1 the customer categoryX, than only those customers which belong to customer categoryX will be shown in Combo2. this is ok. BUT if I choose an other customer category, the same customers (belonging to the previous category) still visible. I go to desing view, and back again form view, it is updated than. I know I should use afterupdate event, but I do not know how.
    any help appreciated!


    Thanks!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Go the properties of Combo1. in the events tab click the ... next to AfterUpdate. Choose Code builder.

    enter in, between the Private Sub Combo1_AfterUpdate and End Sub:

    Me.Combo2.Requery

  3. #3
    Brigitt is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    5

    :-(

    It doesn't work unfortunately....I followed steps you said, but nothing happend, combo2 is not updated automatically according to the selection I make in combo1. I need to go back to design view, and back again to form view....then combo2 is updated.
    What I am doing wrong?

    Thanks

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

Similar Threads

  1. Replies: 0
    Last Post: 02-01-2011, 04:49 AM
  2. User focus control in AfterUpdate event
    By nosliwmada@gmailcom in forum Programming
    Replies: 3
    Last Post: 12-20-2010, 12:51 PM
  3. AfterUpdate event won't refresh subform!
    By Remster in forum Forms
    Replies: 16
    Last Post: 11-26-2010, 10:06 AM
  4. AfterUpdate not updating
    By P5C768 in forum Programming
    Replies: 6
    Last Post: 06-10-2010, 02:31 PM
  5. BeforeUpdate and AfterUpdate Question
    By gsurfdude in forum Programming
    Replies: 0
    Last Post: 04-03-2008, 07:56 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