Documentation of Relation Attributes

J

JGPatrick

Apologies for making so many posts, but if Microsoft had better online
documentation I wouldn't have to ask this next one. Is it just me or does
Microsoft seem to leave ALOT out of their online doc? Is there some monster
reference manual we can buy that will have all this stuff?

Where can I find documentation for DAO relation attributes? In other words,
a list of attributes, with a brief definition of what they mean? This is
necessary if you want to add relationships to your database schema in DAO.
For instance, if I wanted to create a left outer join between two tables and
cascade updates, I know that the way to do this is to assign a certain value
to the attributes property of a relation object, but what value to assign I
have no clue.

Many thanks.

PS: I'm not looking only to execute only that one example; I would like to
have the entire list.
 
G

Gina Whipp

A

Allen Browne

You must be writing some kind of wizard-type app if you need to create
relationships in code.

Here's an example of creating a relation with DAO and setting the
attributes:
http://allenbrowne.com/func-DAO.html#CreateRelationDAO

Once you see how to set the attributes, the constants (members of
RelationAttributeEnum) are self-explanatory. To see the list, use the Object
Browser (press F2 in the code window.)

The only one I'm aware of in JET 4 that's not documented is cascade-to-null.
For a sample database that illustrates that one, see:
http://allenbrowne.com/ser-64.html
 

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