Relationships and Importing

D

Don

I'm trying to get information from a database that has
relationships.

I can import the data, and maintain the relationships, by
pressing Right Click in the database window, selecting
Import, chosing my database and checking "Relationships"
under Import.

Is there anyway to do this programmatically?

Thanks.
 
J

John Mishefske

Don said:
I'm trying to get information from a database that has
relationships.

I can import the data, and maintain the relationships, by
pressing Right Click in the database window, selecting
Import, chosing my database and checking "Relationships"
under Import.

Is there anyway to do this programmatically?

Sure. Check out DAO's CreateRelation() method.

Loop through the Relations collection saving the information
needed to re-create them with CreateRelation().
 

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