Syntax for modifying attributes of relation

B

Brian

I cannot seem to get the syntax correct for modifying the attributes of a
relation programmatically.

I can simply delete the relation, then re-create it with the correct
attributes using the .CreateRelation method as follows:

Set rel = .CreateRelation(relName, tblName, tblName2, relAttributes)

However, I get an "Incorrect use of property" error when I try to modify the
attributes as follows instead of delete/re-create:

rel.Attributes = dbRelationUpdateCascade
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top