codedb.Containers("tables").Documents

  • Thread starter david epsom dot com dot au
  • Start date
D

david epsom dot com dot au

I am iterating through the Documents collection of the Tables Container to
get a list of objects to update from a reference database:

sName = codedb.Containers("tables").Documents(23).Properties(13).Name

This container contains both TableDefs and QueryDefs.

I need to separate the TableDefs and Querydefs so that I can use
TransferDatabase to import the objects:

DoCmd.TransferDatabase acImport, "Microsoft Access", _
"C:\capix\dp8.mdb", rs!nType, rs!sName, rs!sName


Is there any clean way to do this? Or do I have to use a different approach?

(david)
 
P

Paul Overway

Why use the document object at all? Use TableDefs and QueryDefs...TableDefs
and QueryDefs have a Name property.
 

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