Results 1 to 2 of 2
  1. #1
    justme is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2012
    Posts
    4

    filtering combo box in a row without affecting other rows of subform


    I have a main form and a subform. My subform default view is data sheet composed of rows and columns. In every row there are two combo boxes, the first combo box used to filter data of the 2nd combo box. But the problem is, when i go to the second row and update the first combo box, the 2nd combo box in the first row also change its data. What I want to happen is, the first combo box may filter only the data of the 2nd combo in the same row and must not affect the data of the previous rows.

    Please help.. Thanks ahead..

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895

    Combobox or Listbox with Lookup Alias in Continuous or Datasheet Form

    Do these comboboxes have lookup alias? This is a known issue of using combobox with lookup alias in continuous or datasheet view. When you change the RowSource of combobox it is reflected in all records because there really is only one combobox. So when the ID (which is value saved in record) is not in the RowSource, its related descriptor alias value is not available for display.

    Only effective way I know to handle this is to:

    1. include the lookup table in the form RecordSource by join type "Show all records from {the primary table} and only those from {lookup table} that match"

    2. bind a textbox to the alias descriptor field from the lookup table, set it Locked Yes, TabStop No

    3. position the combobox next to the textbox
    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: 5
    Last Post: 03-12-2012, 02:58 AM
  2. Number of rows in a subform by combo box
    By outhwaik in forum Forms
    Replies: 11
    Last Post: 09-07-2011, 07:42 AM
  3. Replies: 2
    Last Post: 08-28-2011, 06:06 AM
  4. Error with filtering subform using 2 combo boxes
    By dharmacloud in forum Forms
    Replies: 4
    Last Post: 08-22-2011, 10:46 AM
  5. Replies: 0
    Last Post: 08-17-2008, 12:19 PM

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