Results 1 to 4 of 4
  1. #1
    joe357 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    3

    RelationShip between Tables


    Everyone,

    I am having trouble with relationships between two tables. example I am trying to have information from one table populate in another as a new record.

    What am i doing incorrectly? I have 4 fields in the original table that need to cascade to the original. The first table is for keeping the data and the second table it to calculate the yearly maintenance.

    When I try to create the relationship i get the error below.

    Data in the Table "Trip Cost Calculator" violates referential integrity rules.

    I am new to programming and books work well but they do not cover the exceptions.

    Thank you,

  2. #2
    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,848
    Research NORMALIZATION.

    Show us your table designs.

  3. #3
    joe357 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    3
    What part of the design the Data Model or the actual design mode to determine if i have things defined correctly

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by joe357 View Post

    ...I am trying to have information from one table populate in another as a new record.

    ...I have 4 fields in the original table that need to cascade to the original.

    ...The first table is for keeping the data and the second table it to calculate the yearly maintenance.
    I have to tell you that the wording here is more than a little curious!

    1. With the exception of a Primary Key, i.e. a Field that uniquely identifies a Record, you do not store Fields in multiple Tables.
    2. I cannot even guess what "I have 4 fields in the original table that need to cascade to the original" means.
    3. Tables are never used to Calculate anything! Queries are the usual Objects intended for data manipulation, including Calculations, although manipulation can also be done in the Module of a Form.


    I think you need to provide us with an explanation of what you're trying to do, from a practical standpoint, in order for us to help you.

    Linq ;0)>

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

Similar Threads

  1. relationship between tables
    By jassie in forum Access
    Replies: 1
    Last Post: 03-27-2012, 05:14 PM
  2. Relationship problem with Tables
    By comteck in forum Access
    Replies: 7
    Last Post: 12-28-2011, 03:45 PM
  3. Relationship between tables
    By kpk in forum Database Design
    Replies: 3
    Last Post: 10-14-2011, 11:49 AM
  4. relationship between the tables
    By mer in forum Queries
    Replies: 1
    Last Post: 07-05-2011, 05:52 AM
  5. Replies: 1
    Last Post: 10-28-2008, 08:38 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