Results 1 to 4 of 4
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Error generated when I made a foreign key to allow duplicate indexes

    When I selected the foreign key and changed it to : indexes (duplicates possible) and put it in a table in the relationships window everything was okay. However when I selected the two lower boxes in the edit relationships window. It gagged on the first one, but not the second.



    The first, Enforce Referential Integrity was fine, but the second, Cascade Updated related fields, was not. It generated an error:

    Invalid field definition, ****, in definition of index or relationship.

    What is it complaining about?

    The third checkbox was fine and generated no complaints.

    R,

    Lou Reed

  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,770
    I believe Cascade Update would be set on Primary key. This would allow a non-autonumber primary key value to be edited (maybe change "ABC1001" to "ABCD1001" and that edit would 'cascade' to all dependent records.
    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
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    So uncheck that second box, Cascade Update?

    Also, I am not following your reasoning. In all of the tutorials, all three boxes are checked. None is left out. So what makes this different?


    R,



    Lou Reed

    PS. When I unchecked the second box it gave no error message.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Okay, my bad. The setting is on the link, not the field or table.

    Don't know why you have this error. I cannot replicate.
    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.

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

Similar Threads

  1. Windows Script Host Error You Made An Illegal Function
    By aellistechsupport in forum Modules
    Replies: 2
    Last Post: 11-23-2015, 10:29 AM
  2. I need help with an error made entering data.
    By raycatena in forum Access
    Replies: 7
    Last Post: 06-29-2015, 05:14 PM
  3. Replies: 10
    Last Post: 05-08-2012, 09:17 AM
  4. Replies: 2
    Last Post: 04-19-2012, 11:29 AM
  5. Too Many Indexes
    By cbrsix in forum Database Design
    Replies: 22
    Last Post: 11-07-2011, 11:12 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