CopyObject

A

a

I using this code to copy table to another data base

==============================================

The code

DoCmd.CopyObject "C:\mydb", "", acTable, "CODES"

==============================================

My Question is

Is there any way to copy relation between tables (((also ))))
 
T

Tony Toews [MVP]

a said:
I using this code to copy table to another data base
Is there any way to copy relation between tables (((also ))))

Yes but using the relationships collection and VBA code. Why would
you want make a table that is a copy of another table?

Tony

--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 

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