Results 1 to 2 of 2
  1. #1
    selvakumar.arc is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    49

    issue in populating combo box based on another combo box

    Hi All,



    In my application I have 2 combo box. I have to populate 2nd combo box value based on 1st combo box. This scenario is working first time but subsequent data fetching is failing. For Example
    1st combo box - Form No
    2nd combo box - EdDt

    Form No EdDt
    ABCD 0001
    ABCD 0002
    ABCD 0003
    WXYZ 0004
    WXYZ 0005

    If user select 1st combo box value as "WXYZ" then 2nd combo box should populate as 0004/0005 and if user select ABCD then it should display 0001/0002/0003/0004. This scenario is working in first time but in second time user tries to modify the EdDt then application showing EdDt for the first selected Form No.
    For example I have 2 records in my application
    ABCD 0002
    WXYZ 0004
    If the user select "WXYZ" - EdDt then 2nd combo box displaying 0004 and 0005. But if the user select "ABCD" - EdDt then application showing EdDt as 0004/0005 instead of 0001/0002/0003/0004.
    This case combo box is not refreshing based on its Form No.
    Please help me to solve this issue.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What is the SQL of the second combobox RowSource?

    Do you have code in the first combobox AfterUpdate event to requery the second combobox?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-03-2013, 10:38 AM
  2. Replies: 3
    Last Post: 12-11-2012, 09:12 AM
  3. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  4. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  5. Replies: 3
    Last Post: 06-29-2010, 12:08 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