It may be because you are trying to add a foreign key value that does not exist in the foreign keys primary table.
But it could be something else. Post your insert statement and information about the tables involved.
I like to use debug.print to see exactly what my sql is and then copy that directly to the database (Query analyzer for SQL server) to see if it works. Sometimes their error handlers return better information than ADO's.
I usually get a 'multiple step' - error message when the datatype the database is expecting is not the same as the datatype I try to insert.
For example: "1-05-2003" as a string cannot be put into a date field, etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.