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

    Arrow Display LOCATION of chosen DVD video without creating 28 queries.

    I have 2 Tables in my Access database.
    Videos: 700 records Titles, categories, locations, etc.
    Categories: 28 records
    My plan is to physically store the DVDs by category in different places in my home.



    I would like to create a program in Access to search for a DVD to watch.
    My thought was to present a screen in MS Access where the user could first select a Category.
    Then using that selected Category select a movie and Location from the available DVDs listed.
    Finally, Print a report of all DVDs in that Category.
    Suggestions?
    Thanks, AZtecfan63

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Thoughts:

    films can have more than one category.
    You might have 2 copies of the dvd in different locations

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    What you describe sounds like what is known as "cascading or dependent combobox". Common topic.

    For ideas on building a search form, review http://allenbrowne.com/ser-62.html. It does not employ cascading combobox but should not be difficult to modify.
    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
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Join Date
    Apr 2017
    Posts
    1,679
    In case every video belongs only to single category, and a every video is stored in single location, you can have the category (and location) field(s) in videos table as is declared in your post #1. Let's assume the table for videos is structured like:
    tblVideos: VideoID, VideoTitle, VideoCategory, VideoLocation
    Create a form fVideos, and add a combo for searching for video by VideoID of selection made. Design the Row Source of this combo as query like:
    SELECT VideoID, VideoCategory & ": " & VideoTitle FROM tblVideos ORDER BY 2 ASCENDING
    Now when you activate this combo, all videos are listed ordered by video category at first, and then by video name. You can either scroll down to start of wanted category, and to search from there videos of this category, or you can start with typing the category name, and you are moved to start of this category in selection list. With less than 1000 videos divided between about 30 categories, I don't see any need for using cascading combos!
    Btw, if the locations are determined by category, and you have only single exemplars of videos, then tho proper table for location must be tblCategories, not tblVideos!

    In case a video can belong to several categories, you need an additional table:
    tblVideoCategories: VideoCategoryID, VideoID, CategoryID/Category (depending how is the table tblCategories structured).
    And the RowSource query for search combo in videos form will be something like:
    SELECT v.VideoID, c.Category & ": " & v.VideoTitle FROM (tblVideos v LEFT JOIN tblVideoCategories vc ON vc.VideoID = v.VideoID) LEFT JOIN tblCategories c ON c.CategoryID = vc.CategoryID ORDER BY 2 ASCENDING
    Searching will work exactly same as above, but when you want the location displayed too, and you don't have a separate copy of video for every location, then getting possible locations displayed gets more complicated.

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

Similar Threads

  1. access, queries for report display
    By akika in forum Queries
    Replies: 4
    Last Post: 01-21-2021, 06:57 AM
  2. Replies: 5
    Last Post: 07-10-2020, 12:41 PM
  3. Replies: 11
    Last Post: 02-25-2019, 02:09 PM
  4. Replies: 1
    Last Post: 11-06-2017, 09:56 AM
  5. Replies: 1
    Last Post: 02-11-2015, 08:02 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