TransferDatabase - With Password

D

Des Norton

Hi NG

Using Access 2000/XP, I need to link a large number of tables from an
external Access 2000/XP DB. The external DB is password protected. The
code below works great, however, it requests the password for every table
(±200 tables).

Is there a method to supply the password programmatically, or even only
request it once?


sDBName = "PathToExternalDB"
sSource = "SourceTableName"
sDest = "DestTableName"

DoCmd.TransferDatabase acLink, _
"Microsoft Access", _
sDBName, _
acTable, _
sSource, _
sDest, _
False, _
True

Regards
Des Norton
 

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