Importing/Exporting Relationships in MS Access

Posted by lamcro on Stack Overflow See other posts from Stack Overflow or by lamcro
Published on 2008-12-09T23:48:01Z Indexed on 2010/04/16 7:13 UTC
Read the original article Hit count: 282

I have a couple of mdb files with the exact table structure. I have to change the primary key of the main table from autonumber to number in all of them, which means I have to:

  1. Drop the all the relationships the main table has
  2. Change the main table
  3. Create the relationships again,... for all the tables.

Is there any way to export the relationships from one file and importing them to all the rest?

I am sure this can be done with some macro/vb code. Does anyone has an example I could use?

Thanks.

© Stack Overflow or respective owner

Related posts about ms-access

Related posts about table-relationships