Re: modifying relationships using DAO?
- From: MGFoster <me@xxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 20:39:39 GMT
You can also use DAO. The DDL statements run just the same as a DAO QueryDef.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Lyle Fairfield wrote:
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: Lyle Fairfield
- Re: modifying relationships using DAO?
- References:
- Re: modifying relationships using DAO?
- From: Lyle Fairfield
- Re: modifying relationships using DAO?
- Prev by Date: Setting a Key to update cascading table
- Next by Date: Re: Importing multiple files..
- Previous by thread: Re: modifying relationships using DAO?
- Next by thread: Re: modifying relationships using DAO?
- Index(es):
Relevant Pages
|