B
Ben8765
Hi,
I am trying to do append queries from many tables in database 'A' to tables
in database 'B' through vba code.
The problem is that there are relationships/constraints on the tables. I
could write code to make the tables append in the correct order so that the
'One' in 'One-to-many' would exist before the 'Many'. But this would require
a lot of hard coding, which is not practical.
Is there a way to temporarily turn off the relationships/constraints?
According to this website, you can do this sort of thing in SQL Server:
ALTER TABLE foo WITH NOCHECK CONSTRAINT ALL
http://stackoverflow.com/questions/737115/turn-off-constraints-temporarily
Is this possible in access? Or is there something else I should be doing?
-Ben
I am trying to do append queries from many tables in database 'A' to tables
in database 'B' through vba code.
The problem is that there are relationships/constraints on the tables. I
could write code to make the tables append in the correct order so that the
'One' in 'One-to-many' would exist before the 'Many'. But this would require
a lot of hard coding, which is not practical.
Is there a way to temporarily turn off the relationships/constraints?
According to this website, you can do this sort of thing in SQL Server:
ALTER TABLE foo WITH NOCHECK CONSTRAINT ALL
http://stackoverflow.com/questions/737115/turn-off-constraints-temporarily
Is this possible in access? Or is there something else I should be doing?
-Ben