Results 1 to 9 of 9
  1. #1
    fedesso is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    5

    Having trouble filtering data into Bridge Entities

    Hey everyone,



    I've been working on a general Movie Database for awhile now that labels the Highest-Grossing movies worldwide. Easy enough. I'm still fairly new to Access and the logic behind queries and data implementation, and while I've normalized my tables and entered data into my main tables VIA forms I haven't been able to understand why I can't enter data into my bridge entities. (I receive an error when doing so, probably because of the enforcement of referential integrity settings)

    Here's a picture of my relationships: https://i.imgur.com/fa8OdVJ.png

    I've tried creating a form for the purpose of choosing a movie from the MOVIE table and an actor from the ACTOR_INFO table to fill the MOV_IDS and ACT_IDS in the MOVIE_LEAD_ACTOR table, but haven't been getting any results. I'm sure that there's something I'm just not understanding, and I'd like to remedy that if anyone has any ideas or time.

    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Suggest that since actors can be directors and directors can be actors, really should be one table for 'People'. Then junction table could be MoviesPeople with field to identify the individual's function. Sometimes an individual will have multiple functions and therefore have more than one record for each movie.
    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
    fedesso is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    5
    Working with the five tables I have, though, is there any way to make that logic work?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why would you want to enter same name into two tables?

    What you show should work. What is the exact error message?

    Actors and Movies records have to exist before creating junction record. Same for Directors and Movies. I think you said you already did that.

    If you want to create Actors, Movies, Directors records 'on-the-fly' while entering junction record, that will require VBA.

    If you want to provide db, follow instructions at bottom of my post.

    Search forum on topic 'movies', I am sure you will find other discussions
    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
    fedesso is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    5
    I'd prefer if you could see the database for yourself. I know it's a cop out, but I've talked to a few other Access users today and they haven't had a clue. The error lies in the Movie Actor Form, where upon creating a new entry it specifies that the Actor_Info table requires a related field. I appreciate your time.
    Attached Files Attached Files

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    All I had to do was set the ControlSource property of the actor combobox. No problem entering record.

    Suggest you change TabOrder setting for each control.
    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.

  7. #7
    fedesso is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    5
    If only I had known it was just a few clicks away... but is it possible to have those newly generated rows with ACT_IDs adhere to the same numbering constraints I set for the ACT_ID in the Actor_Info table?

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You simply set formatting on the PK field which does not alter the actual value. Why bother with formatting? The autonumber PK/FK has no meaning to users. They really have no reason to even know it exists. Same for directors. An autonumber PK/FK is intended to serve as records link, not to generate an identifier that has meaning to users, especially if you don't want gaps in sequence.

    When your numbers exceed the formatting constraints, will have to modify table design.

    I never bother with these sort of settings in table. Do formatting on forms and reports.
    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.

  9. #9
    fedesso is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    5
    I agree, but for the sake of conventionality I have to have unique numbers. There won't be much data incorporated in total though, so we'll see. I've got everything fixed up now I think, I really appreciate the assistance!

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

Similar Threads

  1. Trouble filtering combobox
    By ittechguy in forum Forms
    Replies: 27
    Last Post: 09-08-2015, 08:08 PM
  2. Trouble with filtering underlying form
    By Mubashir sabir in forum Forms
    Replies: 2
    Last Post: 07-14-2015, 03:54 AM
  3. Basic Bridge Management System
    By daniel_l89 in forum Access
    Replies: 3
    Last Post: 09-05-2013, 11:47 AM
  4. Replies: 2
    Last Post: 05-02-2013, 03:01 AM
  5. Entities and Attributes - Table Design
    By bmark in forum Database Design
    Replies: 2
    Last Post: 03-14-2012, 11:07 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