Results 1 to 5 of 5
  1. #1
    DecaturLady is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Location
    Atlanta, GA
    Posts
    26

    Using multiple genre categories in db, queries & reports


    I am a beginner with a little bit of experience. Am attempting to catalog my movie library. Movies come in all sort of genres and I wanted to note this information for retrieval. So far I have about 25 genre types (Drama, Comedy, History, Science Fiction, etc.). I thought the Yes/No data type was the best way to go. So my Data Entry Form has all the genres listed with a Yes/No check box.

    However, queries are not performing as expected.

    Ultimately, when I print a report, I want to see only the genre types attributed to the film. I'm now stuck. What suggestions might you have as to how I should structure the data and queries? Thanks for your help!!

    DecaturLady

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    What are your business facts/rules:

    1 movie can be assigned 1 or many Genres

    Sounds like you may have at least 3 tables

    tblMovie -->MoviesHasBeenAssignedGenre<---tblGenres

  3. #3
    DecaturLady is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2011
    Location
    Atlanta, GA
    Posts
    26
    Sorry, this beginner doesn't understand. Would Y/N be in the TblGenres? All movies have genres, at least one. So why (or what is purpose of) do I need MoviesHasBeenAssignedGenre?
    pam

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    Appears your data structure is not normalized. Multiple y/n fields for same type of data is an indicator.

    Need to learn relational database principles and Access functionality. Start with this tutorial site: http://www.rogersaccesslibrary.com/

    What you have is a many-to-many relationship between 2 entities - Movies and Genres. This requires a junction table to associate a movie with its relevant genres. Each movie/genre pair will be a record in MoviesHasBeenAssignedGenre.

    MoviesHasBeenAssignedGenre (or a shorter name tblMovieGenres)
    MovieID (foreign key)
    GenreID (foreign key)

    No y/n fields.
    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.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    There is OTS software to manage your collection.

    Here are two links to free programs:
    http://www.datacrow.net/#!prettyPhoto
    http://www.emdb.eu/downloads.html


    If you are developing a library to help learn Access, ignore the above.

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

Similar Threads

  1. Reports on multiple tables / queries
    By drnld in forum Access
    Replies: 5
    Last Post: 07-02-2014, 09:04 AM
  2. Replies: 15
    Last Post: 07-05-2013, 10:44 AM
  3. Replies: 2
    Last Post: 07-30-2012, 09:49 AM
  4. Multiple Queries and Reports
    By Chad E in forum Access
    Replies: 4
    Last Post: 10-18-2011, 01:47 PM
  5. Replies: 1
    Last Post: 07-02-2010, 03:55 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