Relationships and Importing

  • Thread starter Thread starter Don
  • Start date Start date
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.
 
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().
 
Back
Top