I'm using this code to delete all relationships in my mdb file
iFlag = 1
Do While iFlag <> 0
iFlag = 0
For Each rel In db.Relations
db.Relations.De lete rel.Name
iFlag = 1
Next rel
Loop
Just looping once only deletes one relation between two tables. I have to
repeat the loop to delete all relations between all tables. Is there some
outer container or collection that I can loop through? Also, is there an
SQL statement like "DROP RELATION..."?
Thanks.
Matthew Wells
MWells@NumberCr uncher.com
iFlag = 1
Do While iFlag <> 0
iFlag = 0
For Each rel In db.Relations
db.Relations.De lete rel.Name
iFlag = 1
Next rel
Loop
Just looping once only deletes one relation between two tables. I have to
repeat the loop to delete all relations between all tables. Is there some
outer container or collection that I can loop through? Also, is there an
SQL statement like "DROP RELATION..."?
Thanks.
Matthew Wells
MWells@NumberCr uncher.com
Comment