Re: modifying relationships using DAO?
- From: "Lyle Fairfield" <lylefairfield@xxxxxxx>
- Date: 28 Feb 2006 11:39:00 -0800
TTBOMK one must use an ADODB connection to deal with Updates and
Constraints as in:
(dropping the existing constraint)
CurrentProject.Connection.Execute _
"ALTER TABLE [Order Details] " _
& "DROP CONSTRAINT " _
& "OrderParent "
(and rebuilding it with the OnUpdate or OnCascade attributes set)
CurrentProject.Connection.Execute _
"ALTER TABLE [Order Details] " _
& "ADD CONSTRAINT " _
& "OrderParent " _
& "FOREIGN KEY (OrderID) " _
& "REFERENCES Orders (OrderID) " _
& " ON UPDATE CASCADE " _
& " ON DELETE CASCADE"
.
- Follow-Ups:
- Re: modifying relationships using DAO?
- From: MGFoster
- Re: modifying relationships using DAO?
- Prev by Date: Re: modifying relationships using DAO?
- Next by Date: Re: Cross-joins and non-updateable record sets
- Previous by thread: Re: modifying relationships using DAO?
- Next by thread: Re: modifying relationships using DAO?
- Index(es):