ADODB.Recordset Related record required
Hi all-
I'm working on a tool that exports worksheets from Excel to Access tables. On an Update statement, I'm getting the following message: "Run-Time Error '-2147217873 (80040e2f)': You cannot add or change a record because a related record is required in table 'Customer'." But the error is thrown (apparently) at random. Not only is there no relationship with the 'Customer' table, but there is nothing in common between the lines on which the error is thrown.
I'm not sure how much of this actually has to do with code, so I'm going to hold off on that. I'm using Access 2013, and the program is written in an Excel 2013 Macro. If there is any more information needed, please let me know and I would be happy to provide it.
Thank you so much!
Hi all-
I'm working on a tool that exports worksheets from Excel to Access tables. On an Update statement, I'm getting the following message: "Run-Time Error '-2147217873 (80040e2f)': You cannot add or change a record because a related record is required in table 'Customer'." But the error is thrown (apparently) at random. Not only is there no relationship with the 'Customer' table, but there is nothing in common between the lines on which the error is thrown.
I'm not sure how much of this actually has to do with code, so I'm going to hold off on that. I'm using Access 2013, and the program is written in an Excel 2013 Macro. If there is any more information needed, please let me know and I would be happy to provide it.
Thank you so much!
Comment