Results 1 to 2 of 2
  1. #1
    CoachBarker is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    17

    One to many relationships

    I have 2 tables in my db for tracking Payment Histories and CustomerComments. Both are related to the Customer table, for example: tblComments, CommentsID(PK), CustomerID(FK), RentalUnitID(FK), Comments and CommentDate. When I try to add a record it tells me I need an existing record in tblCustomer(CustomerID). Do I get by this by not checking Enforce Referential Integrity or am I setting up the table incorrectly.

    Attachment 1849

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    personally, I would eliminate all of the one-to-one's. you can most likely substitute one-to-many's in for them. those are easier to work with IMO. and yes, you can get around your current situation by doing what you stated.

    be aware though, that shutting down RI will give you headaches as soon as you want to use a JOIN statement in one of your queries. The data will most likely not be correct in the output set. Either that, or it will error out on you.

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

Similar Threads

  1. Too Many Relationships
    By MikeT in forum Database Design
    Replies: 4
    Last Post: 08-25-2010, 07:23 PM
  2. Relationships?
    By rosh41 in forum Database Design
    Replies: 2
    Last Post: 06-23-2010, 01:26 PM
  3. Table Relationships?
    By Meld51 in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:34 AM
  4. question about relationships
    By grad2009 in forum Access
    Replies: 3
    Last Post: 02-16-2010, 06:12 PM
  5. Relationships - GroupID
    By Dega in forum Database Design
    Replies: 7
    Last Post: 01-28-2010, 10:41 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