F
Francisco Garcia
Hi!
I want to create a relationship between two existing tables, but I can't
find the query. I'm using an Access 2000 Database. I've tried these queries
(among many other, all of them fail):
ALTER TABLE [SecurityGroupsObjects] ALTER COLUMN [Object] INTEGER NOT NULL
REFERENCES [SecurityObjects] (Id) ON DELETE CASCADE ON UPDATE CASCADE
ALTER TABLE [SecurityGroupsObjects] ADD CONSTRAINT ConstName FOREIGN KEY
([Object]) REFERENCES [SecurityObjects] (Id) ON DELETE CASCADE ON UPDATE
CASCADE
Anyone out there can tell me how to do it?
Thanks in advance
I want to create a relationship between two existing tables, but I can't
find the query. I'm using an Access 2000 Database. I've tried these queries
(among many other, all of them fail):
ALTER TABLE [SecurityGroupsObjects] ALTER COLUMN [Object] INTEGER NOT NULL
REFERENCES [SecurityObjects] (Id) ON DELETE CASCADE ON UPDATE CASCADE
ALTER TABLE [SecurityGroupsObjects] ADD CONSTRAINT ConstName FOREIGN KEY
([Object]) REFERENCES [SecurityObjects] (Id) ON DELETE CASCADE ON UPDATE
CASCADE
Anyone out there can tell me how to do it?
Thanks in advance