Results 1 to 3 of 3
  1. #1
    joe5 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2018
    Posts
    6

    combo box read from filtered subform

    hello everyone,
    hope you're doing fine,



    i have a main form with 2 textboxes, 1 combo box and a tabular subform (the subform is reading from table "tblClient" and showing 3 fields "customer name", "date of registration", "gender" from table "tblClient").

    in the main form, the user can use the 2 textboxes to filter by date (first textbox to enter "date from" and second textbox to enter "date to") in the subform on the filed "date of registration".

    my problem is with the combo box on my main form that is reading the field "customer name" from "tblClient", when my subform is filtered by date the combo box still show all the customer names. i want the combo box to show only the "customer name" that are in the subform after it is filtered.

    so is there a way to make my combo box in the main form read the "customer name" from the subform not from the table?

    thank you.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    The combobox RowSource would have to include date field and apply same date range criteria.

    This is called cascading (or dependent) combobox. A very common topic.
    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.

  3. #3
    joe5 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2018
    Posts
    6
    Quote Originally Posted by June7 View Post
    The combobox RowSource would have to include date field and apply same date range criteria.

    This is called cascading (or dependent) combobox. A very common topic.
    Thanks a lot. It worked

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

Similar Threads

  1. Filtered subform to table
    By MTSPEER in forum Programming
    Replies: 2
    Last Post: 02-09-2016, 02:17 PM
  2. Replies: 5
    Last Post: 12-11-2013, 08:15 AM
  3. DCount on filtered subform
    By TheShabz in forum Forms
    Replies: 2
    Last Post: 07-13-2011, 02:22 PM
  4. Replies: 5
    Last Post: 01-02-2011, 10:09 AM
  5. Replies: 2
    Last Post: 10-19-2006, 04:37 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