Results 1 to 5 of 5
  1. #1
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28

    Relationships and other general help

    Hello all again, so I have been reading on the microsoft site on the access part about a few things and I am kinda confused on certain things and if someone does not mind clearing these questions up for me it would be great.
    1.)What exactly is a relationship for? And what is the difference between one to many and many to many relationships? Do you have to have more than one table to incorporate relationships?
    2.)What exactly does the primary and foreign keys do? Are they needed?
    I am sorry ahead of time if you guys think I am just plain dumb, but I am as new to Access as a thief is being honest and Microsoft's site does not really explain it on my level of what I am trying to comprehend.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    Tables have relationships (as defined by PK and FK fields) so you don't have a single giant flat file with a lot of repetitive data (like a spreadsheet).

    1 to many: each employee can have many travel expense claims but each travel expense claim will be for only 1 employee

    many to many: each employee will have many pay periods and each pay period will have many employees

    Yes, PK and FK fields are necessary to define the relationship between tables.

    Whether relationship links should be set up in the Relationships builder is another issue with divergent viewpoints. This is not relevant to the data structure of tables. Database can work just fine without the established links.
    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
    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
    Watch the free videos listed here

  4. #4
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28
    Thankyou both, I'll be watching and thankyou for answering my question

  5. #5
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Quote Originally Posted by orange View Post
    Watch the free videos listed here
    I aspire to one day be on that list.

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

Similar Threads

  1. General Help
    By Andyjones in forum Access
    Replies: 4
    Last Post: 12-11-2013, 07:54 AM
  2. Explicit Relationships and Implicit Relationships
    By Dazza666 in forum Database Design
    Replies: 2
    Last Post: 07-17-2013, 02:11 AM
  3. General Help indeed!
    By brookierook in forum Access
    Replies: 34
    Last Post: 01-09-2013, 09:22 AM
  4. A few general questions...
    By Daryl2106 in forum Access
    Replies: 3
    Last Post: 02-29-2012, 09:57 PM
  5. General question
    By dollygg in forum Access
    Replies: 7
    Last Post: 12-11-2009, 05:13 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