Newbie problem, Added a link table for a many to many. Can't insertbecause of a foreign key constrai

Discussion in 'Access Table Design' started by John Yee, Jan 13, 2011.

  1. John Yee

    John Yee Guest

    Hi,

    I am not a DBA or experienced database designed. I am making a dvd
    library database. I have an actresses, casts, and videos table. I
    already populated the videos (dvd titles), and actresses. The casts
    table only have the ActressId and VideoId columns. It is configured as
    a many to many relationship. When I try to insert all the data from
    the old database to the new designed Casts tables, I get the following
    error message


    The INSERT statement conflicted with the FOREIGN KEY constraint
    "FK_Casts_Actresses". The conflict occurred in database
    "DvdCollection", table "dbo.Actresses", column 'ActressId'.

    Any help is greatly appreciated,

    CR
     
    John Yee, Jan 13, 2011
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. HENRY ONYEAGBAKO
    Replies:
    2
    Views:
    228
    Steve Schapel
    Feb 1, 2004
  2. 1aae

    Primary Key and foreign Key

    1aae, Apr 5, 2004, in forum: Access Table Design
    Replies:
    1
    Views:
    156
    Nikos Yannacopoulos
    Apr 5, 2004
  3. Tom
    Replies:
    4
    Views:
    85
    Steve Schapel
    Aug 11, 2004
  4. HDW
    Replies:
    3
    Views:
    277
    Allen Browne
    Oct 16, 2004
  5. Harold via AccessMonster.com

    Field properties for primary key and foreign key

    Harold via AccessMonster.com, Jul 18, 2005, in forum: Access Table Design
    Replies:
    5
    Views:
    197
  6. David M C

    Primary Key to Foreign Key

    David M C, Dec 20, 2005, in forum: Access Table Design
    Replies:
    8
    Views:
    165
    John Vinson
    Dec 21, 2005
  7. TURNIP

    Primary Key/Foreign Key

    TURNIP, Feb 13, 2006, in forum: Access Table Design
    Replies:
    8
    Views:
    103
    KARL DEWEY
    Feb 13, 2006
  8. fizban33
    Replies:
    8
    Views:
    138
    BruceM
    Jun 19, 2006
Loading...