Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    QuantifyRisk is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    65

    Doesn't a FK essentially create a relationship in the same way?

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Just having the fields doesn't establish relationship. Access doesn't know there is relationship unless you define it. That's what Relationships window is for. However, as rpeare stated, many experienced developers don't bother building relationships. They build db so users do not interact directly with tables and queries and then manage data integrity with form design and code.
    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. #18
    QuantifyRisk is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    65
    I still have to build the UI for the data to be entered in for the reps.

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Correct. The UI is forms and reports managed with code.
    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. #20
    QuantifyRisk is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    65
    Click image for larger version. 

Name:	2014-07-16_22-14-45.jpg 
Views:	8 
Size:	111.8 KB 
ID:	17305

    This is what I did last night. Originally, the 5 tables were connected. Then, a friend told me that I don't need junctions because I have a one-to-many on one side and a one-to-one of the other. (producers can only work for one agency). So I changed it on the left side and left the right side with the junctions (for now). I left the agency2producer junction in for reference.

  6. #21
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    So producers are licensed, not the agencies?
    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. #22
    QuantifyRisk is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    65
    Agencies do have their own agency code, but it is different from the producer's.

  8. #23
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Agencies do not have licenses?

    Same agency number is recognized by all states? Who assigns this agency number?
    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. #24
    QuantifyRisk is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    65
    Honestly, I'm not sure if their code is the same as a license. It would make sense to me that it's more of a code than a license. An agency has only one code that we use. I'd have to find out who assigns it. I get the feeling it's a reference number for us but I'm not positive.

  10. #25
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I don't think you need the junction table. Each license belongs to only one producer. Just put the ProducerNumber as foreign key in StateLicense table.
    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.

  11. #26
    QuantifyRisk is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    65
    Yup. That's my next step. Thanks guys.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 06-19-2014, 03:47 PM
  2. Replies: 2
    Last Post: 08-03-2013, 03:41 PM
  3. Replies: 3
    Last Post: 10-24-2012, 05:41 PM
  4. Database window partially hidden!!!!!
    By Ray67 in forum Access
    Replies: 4
    Last Post: 09-23-2011, 11:49 AM
  5. Replies: 2
    Last Post: 06-14-2010, 09:38 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