Results 1 to 4 of 4
  1. #1
    aquaraider is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    14

    Question Does change event works with navigation button?


    Hello,

    I have a form base on [Orders] table, in this form there are 2 combo boxes,named [FactoryID] and [Products]. [Products] combo box will be filtered by [FactoryID] combo box.

    I've done it by a query in [Products] which takes value from [FactoryID], and a Products.Requery command in change event of [FactoryID]. So that if [FactoryID] changes, [Products] will do requery to update its list to match current [FactoryID].

    But the problem is, this form has navigation buttons on bottom, which I can use it to navigate to other Orders, and in each order, FactoryID may be different, but seems Access does not consider this kind of changes on FactoryID as change event.

    Therefore, if current Order is 1, FactoryID is A, Products will show A's product, but when I use navigation buttons to navigate to Order 2, and Order 2's FactoryID is B, Products still showing A's product unless I click and make changes on FactoryID combo box by myself.

    Does anyone would give me some idea for how to solve this?

    Thanks very much

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try using the Current Event of the form.

  3. #3
    aquaraider is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    14
    Thank you!
    Now I've add a Products.Requery into Form_Current() as well, it works!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Great! Glad I could help.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-03-2009, 08:24 AM
  2. Replies: 21
    Last Post: 06-03-2009, 05:54 PM
  3. Import from MS Works
    By jerald in forum Import/Export Data
    Replies: 0
    Last Post: 03-17-2009, 08:00 AM
  4. Replies: 2
    Last Post: 03-10-2009, 05:14 PM
  5. Replies: 1
    Last Post: 03-31-2008, 09:53 AM

Tags for this Thread

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