L
liamo
Guest
Hi All,
I have a need to create - in code - a set of relationships on tables that have been pre-populated with data. As the tables may contain data that would break Referential Integrity, I need to create the relationship *without* enforcing RI.
This is pretty straightforward to do in the Relationship Designer, ie Simply untick the "Enforce Referential Integrity" checkbox.
My problem is that there doesn't appear to be any way to replicate this in code.
I can set .UpdateRule = adRINone and .DeleteRule = adRINone but I can't find any way to do .EnforceRI = NoThanks
I've done a lot of searching with no success and I'd be most grateful for any suggestions or pointers to URLs or documents.
Thanks
Liam
I have a need to create - in code - a set of relationships on tables that have been pre-populated with data. As the tables may contain data that would break Referential Integrity, I need to create the relationship *without* enforcing RI.
This is pretty straightforward to do in the Relationship Designer, ie Simply untick the "Enforce Referential Integrity" checkbox.
My problem is that there doesn't appear to be any way to replicate this in code.
I can set .UpdateRule = adRINone and .DeleteRule = adRINone but I can't find any way to do .EnforceRI = NoThanks
I've done a lot of searching with no success and I'd be most grateful for any suggestions or pointers to URLs or documents.
Thanks
Liam