Hi Guys...
Long time, no post...sorry, sadly I only tend to post on here when I get stuck
I'm trying to link tables in two databases (ie a front end and a back-end holding the data) using VBA. I've already had success with this using in my front end:
DoCmd.TransferDatabase acLink ,"Microsoft Access",<path of back-end database>,acTable,<source table in back-end>,<destination table in front-end>
...and this has worked fine. However in my latest release of my software I want to password-protect the back-end database using the standard "Set Database Password" function so that the back-end database cannot be manually opened. Obviously if I do this, the above command as it stands will require the user to type in the database's password, which somewhat defeats the objective. Any ideas how I pass-across the database's password in my link instructions?
Cheers
John
Long time, no post...sorry, sadly I only tend to post on here when I get stuck

I'm trying to link tables in two databases (ie a front end and a back-end holding the data) using VBA. I've already had success with this using in my front end:
DoCmd.TransferDatabase acLink ,"Microsoft Access",<path of back-end database>,acTable,<source table in back-end>,<destination table in front-end>
...and this has worked fine. However in my latest release of my software I want to password-protect the back-end database using the standard "Set Database Password" function so that the back-end database cannot be manually opened. Obviously if I do this, the above command as it stands will require the user to type in the database's password, which somewhat defeats the objective. Any ideas how I pass-across the database's password in my link instructions?
Cheers
John