G
Guest
Hello,
I am stuck using a database with no primary keys. I have two tables
that both have the same field name and datatype. Using Access, in the
relationships design, I can create an indeterminate relationship with the two
tables. However, since I do not have access to clients database, I have to
write code to create this realationship using SQL. Does anyone know how to
create an indeterminate relationship using a SQL statement.
I have used the following with keys and it of cource works great.:
ALTER TABLE tblOne ADD CONSTRAINT FK_Name
FOREIGN KEY (ID) REFERENCES tblTwo (ID)
Thanks in advance.
Dolph
I am stuck using a database with no primary keys. I have two tables
that both have the same field name and datatype. Using Access, in the
relationships design, I can create an indeterminate relationship with the two
tables. However, since I do not have access to clients database, I have to
write code to create this realationship using SQL. Does anyone know how to
create an indeterminate relationship using a SQL statement.
I have used the following with keys and it of cource works great.:
ALTER TABLE tblOne ADD CONSTRAINT FK_Name
FOREIGN KEY (ID) REFERENCES tblTwo (ID)
Thanks in advance.
Dolph