We're having trouble with adding a foreign key constraint with SQL in MS Access. We're trying to add a composite key as a foreign key. Underneath you'll find our SQL-statement:
ALTER TABLE ARTICLE (
ADD CONSTRAINT rackSort_FK
FOREIGN KEY (rackSort)
REFERENCES ARTICLE(rackSize, rackType)
);
Do you see any mistakes? Why doesn't this work? Access shows the following error:
Syntax error in ALTER TABLE statement.
Thanks in advance! Greets, Sytze & Tom