Results 1 to 7 of 7
  1. #1
    Aztecfan63 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2020
    Location
    Chula Vista, CA
    Posts
    26

    I have a simple Table "Videos table" i want to display the names of videos in just 1 category.

    My Video Table contains over 700 videos in 19 categories.
    I have a form (Select Category) that will show a combo box that will list the categories. When the user clicks on their choice of category, how do i use that choice to display the names of the chosen videos?

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    We need an image of your form to see where to start. Better yet, upload your database. If you don't want to show all your data, just include a few videos with fake names.
    Don't be surprised when you get replies that your DB structure needs more tables. However you might be able to satisfy your needs if the table you mention is the only one.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Apply filter criteria to form's Filter property.

    Best to filter by numeric ID's than text descriptors. So, if value of combobox is category ID, code would use that. Do you want to use macros or VBA?

    VBA code in combobox AfterUpdate event could be like:

    Me.Filter = "CategoryID=" & Me.comboboxname
    Me.FilterOn = True

    Review this article http://allenbrowne.com/ser-62.html
    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.

  4. #4
    Aztecfan63 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2020
    Location
    Chula Vista, CA
    Posts
    26
    This is my Select form. The dropdown is connected to categories table. which lists 19 categories. when I click on one of the categories I want to display the list of DVD names from the selected query. I have 19 queries.

  5. #5
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    You can't paste images here. You have to attach them.


    Click image for larger version. 

Name:	aztInsert.png 
Views:	23 
Size:	40.3 KB 
ID:	52467

  6. #6
    Join Date
    Apr 2017
    Posts
    1,792
    Create a continuous form based on your DVD's table (I assume there is a category field present);
    Add this form as subform into your Select form;
    Set your categories combo in your Select form as LinkMasterFields, and the category field of DVD's table as LinkChildFields of subform.

    Now whenever you select a category in combo, the subform displays any info you designed the subform to display for all DVD's of selected category.

  7. #7
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Using Copilot to get list of movies and categories for test data made this easier.
    Industry practice uses the word 'Genre' rather than 'Category'.
    Used wizards to create forms and combobox lookups, so no VBA code employed.
    The DB uses NO queries at all.

    Click image for larger version. 

Name:	catfrm.png 
Views:	13 
Size:	44.4 KB 
ID:	52469


    Click image for larger version. 

Name:	movfrm.png 
Views:	13 
Size:	37.1 KB 
ID:	52470
    Last edited by davegri; 12-05-2024 at 02:51 PM. Reason: verbiage

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

Similar Threads

  1. Replies: 2
    Last Post: 07-07-2021, 02:53 PM
  2. Replies: 4
    Last Post: 04-04-2017, 08:06 AM
  3. Replies: 1
    Last Post: 01-22-2016, 04:36 AM
  4. Replies: 5
    Last Post: 05-10-2014, 09:24 AM
  5. NGO Just Want a Simple Search Box!
    By funkyblue in forum Forms
    Replies: 4
    Last Post: 04-28-2013, 04:00 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