Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a db, but including only Tables that match a Spec

Status
Not open for further replies.

teach314

Technical User
Jul 29, 2011
183
CA
hi
DoCmd.TransferDatabase is a great way to COPY and RENAME an mdb file. What is an efficient way to COPY and RENAME the mdb file including all Modules, Forms, Queries, etc., but only including Tables that match a SPEC (for example, "tbl_???_Values_*") ?

Thanks for any hints
 
Perhaps write some VBA Code that can create a cursor (record set) of tables from tabledef object, then look through that object and perform command(s) as needed. VBA Coding experience required... Just one thought... htwh..

Steve Medvid
IT Consultant & Web Master
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top