Hi,
I hope I'm posting this on the correct forum.
I get the following error message when I try to remove a one to many relationship in my database programatically:
*******
object required '[string: "C:\Caps1\CapsDb1.mdb"]'
*******
This is the code I am using on my asp page"
*******************
Set db = "caps1\capsDB1.mdb"
set rel = db.CreateRelation("321", "Multi Table", "Records Table")
rel.attributes = dbRelationDontEnforce
Set fld = rel.CreateField("MID")
fld.ForeignName = "MID"
rel.Fields.Append fld
db.Relations.Append rel
db.Relations.Update
*********************
What am I doing wrong?
Thanks,
Charlix
I hope I'm posting this on the correct forum.
I get the following error message when I try to remove a one to many relationship in my database programatically:
*******
object required '[string: "C:\Caps1\CapsDb1.mdb"]'
*******
This is the code I am using on my asp page"
*******************
Set db = "caps1\capsDB1.mdb"
set rel = db.CreateRelation("321", "Multi Table", "Records Table")
rel.attributes = dbRelationDontEnforce
Set fld = rel.CreateField("MID")
fld.ForeignName = "MID"
rel.Fields.Append fld
db.Relations.Append rel
db.Relations.Update
*********************
What am I doing wrong?
Thanks,
Charlix