G
Guest
H
I am trying to create a relationship between two existing tables
How do I define the fields from the two tables
Dim dbs As Database, rel As Relatio
Set rel = dbs.CreateRelation("xxxx"
rel.Table = "Table1
rel.ForeignTable = "Table2
rel.Attributes = dbRelationDeleteCascade And dbRelationUpdateCascad
' Define field from Table - Nam
' Define field from ForeignTable - ForeignNam
dbs.Relations.Append re
All the sample help topics create a new field before defining the ForeignName
Thanks in advance for any suggestion
I am trying to create a relationship between two existing tables
How do I define the fields from the two tables
Dim dbs As Database, rel As Relatio
Set rel = dbs.CreateRelation("xxxx"
rel.Table = "Table1
rel.ForeignTable = "Table2
rel.Attributes = dbRelationDeleteCascade And dbRelationUpdateCascad
' Define field from Table - Nam
' Define field from ForeignTable - ForeignNam
dbs.Relations.Append re
All the sample help topics create a new field before defining the ForeignName
Thanks in advance for any suggestion