Results 1 to 3 of 3
  1. #1
    daveofgv is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Feb 2011
    Posts
    18

    Relationship Question on one-many

    Hello All -



    I have been really trying to learn relationships so I can create a program in VB.NET. I think I may have it all down, however, I am still having a little confusion.

    I am not sure what table (in a relationship) should be the "many side" and which should be the "one side".

    For example:

    I have clients that have court dates. One client can have many court dates.
    Therefore, I am assuming that the relationship should be:

    defendantTBL will be the "one"
    CourtTable will be the "many"

    "One defendant can have Many court dates" (one to many)

    Is this correct???

    Also, I see many people are using the primary key as the autonumber, however, it seems almost impossible to create a relationship with an autonumber. Keeps saying different values or data type when I try to connect the tables.

    I don't understand foreign keys and Access 2007 (I can't find) have foreign keys, only primary keys.....

    If anyone can help I appreciate it.

    daveofgv

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by daveofgv View Post
    I have clients that have court dates. One client can have many court dates.
    Therefore, I am assuming that the relationship should be:

    defendantTBL will be the "one"
    CourtTable will be the "many"

    "One defendant can have Many court dates" (one to many)

    Is this correct???
    The answer here is YES.
    Quote Originally Posted by daveofgv View Post
    Also, I see many people are using the primary key as the autonumber, however, it seems almost impossible to create a relationship with an autonumber. Keeps saying different values or data type when I try to connect the tables.

    I don't understand foreign keys and Access 2007 (I can't find) have foreign keys, only primary keys.....
    The ForeignKey in the CourtTable will be a LongInteger field. The CourtTable will have its own AutoNumber PrimaryKey field.

  3. #3
    daveofgv is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Feb 2011
    Posts
    18
    Thanks. I think the little things like this are the most confusing (for me). I will try and see if I have any trouble.

    I appreciate it again!

    daveofgv

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

Similar Threads

  1. Table Relationship Question!
    By mbake085 in forum Access
    Replies: 5
    Last Post: 08-05-2010, 09:50 AM
  2. Structure/Relationship Question? Please Help...
    By Imgsolutions in forum Access
    Replies: 2
    Last Post: 06-27-2010, 09:52 PM
  3. Access Table - Relationship Question
    By vixtran in forum Database Design
    Replies: 5
    Last Post: 06-12-2009, 10:10 PM
  4. Many-to-Many Relationship
    By Carolyn1 in forum Database Design
    Replies: 0
    Last Post: 09-25-2006, 02:04 PM
  5. Access Relationship Display Question
    By dayrinni in forum Access
    Replies: 3
    Last Post: 02-05-2006, 11:16 AM

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