M
MadeleineP
Hi everyone,
I want to define relation for my 2 tables using <<ON UPDATE CASCADE>>.
However, I get the syntaxe error <<Eror de syntaxe in the CONSTRAINT
clause>>.
SEction_detail is my foreign table and Section_id is my primary table. Here
is my code:
Dim db As Database
Set db = CurrentDb()
db.Execute "ALTER TABLE SELECTION_DETAIL ADD CONSTRAINT
SELECTIONID_SELECTIONDETAIL FOREIGN KEY (NO_SELECTION) REFERENCES
SELECTION_ID (NO_SELECTION) ON UPDATE CASCADE"
db.Close
Set db = Nothing
I want to define relation for my 2 tables using <<ON UPDATE CASCADE>>.
However, I get the syntaxe error <<Eror de syntaxe in the CONSTRAINT
clause>>.
SEction_detail is my foreign table and Section_id is my primary table. Here
is my code:
Dim db As Database
Set db = CurrentDb()
db.Execute "ALTER TABLE SELECTION_DETAIL ADD CONSTRAINT
SELECTIONID_SELECTIONDETAIL FOREIGN KEY (NO_SELECTION) REFERENCES
SELECTION_ID (NO_SELECTION) ON UPDATE CASCADE"
db.Close
Set db = Nothing