Results 1 to 10 of 10
  1. #1
    shuddle is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    53

    Master-Child Link Error Object or class does not support the set of events

    I have a master form "Fm_Vehicle_Data" with the primary key "VIN" and a subform "Subfm_Accidents" with the primary keys "AccidentVIN" and "Accident Date".



    I have linked the forms with the Link Master Fields being "VIN" and the Link Child Fields as "Accident VIN"

    They are in a one-to-many relationship without Enforce Referential Integrity.

    When I try to enter data in the subform of a record I get this error "The LinkMasterFields property setting has produced this error: Object or class does not support the set of events."

    Can you help with this?

  2. #2
    shuddle is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    53
    Correction Child link is "AccidentVin" no space

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Don't set up a compound primary key. Set this field pair as a compound index. This dependent table does not even need a primary key although wouldn't hurt to have an autonumber field as key. Accident VIN just needs to be a foreign key field.
    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.

  4. #4
    shuddle is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    53
    I'm not sure what you mean by compound index.

    I have changed out the dual primary keys to an autonumber primary key. I've also changed the AccidentVin to Index to Yes (Duplicates OK), but I'm still getting the same error.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    If accidentvin was your primary key, then you should not have it set for duplicates.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,820
    Hi
    Can you upload a copy of the Db?

  7. #7
    shuddle is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    53

    Sample database

    Fleet Database_Test.zip

    I have attached a sample database. When I go to the Data Entry Form and try to add data into the subforms I get the following error message.

  8. #8
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,820
    Hi
    It is difficult to know where to start as there are so many things wrong with your Relationships and table designs.

    Can you give an explanation as to the purpose of the database?

  9. #9
    shuddle is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    53
    That's not good to hear.

    The purpose is to have all the data that relates to a vehicle to reside in one place for data entry and easy viewing. There could be multiple users. There are monthly VORs. There could be multiple Recalls, 3rd Part Inspections, Modifications and Accidents.

    I guess if it is as bad as you indicate I could start over.

  10. #10
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    I didn't have any trouble at all editing record 1 or adding record 2.
    Click image for larger version. 

Name:	fleet.jpg 
Views:	12 
Size:	169.0 KB 
ID:	52342

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

Similar Threads

  1. Replies: 0
    Last Post: 02-13-2015, 02:24 PM
  2. Replies: 1
    Last Post: 04-26-2012, 12:14 AM
  3. Object or class does not support the set of events??
    By mejia.j88 in forum Programming
    Replies: 5
    Last Post: 12-12-2011, 12:01 PM
  4. Replies: 9
    Last Post: 05-19-2011, 12:08 PM
  5. object or class does not support the set of events
    By couch potato in forum Programming
    Replies: 2
    Last Post: 03-20-2010, 08:55 AM

Tags for this Thread

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