I have a tool in an MS Access project (adp) that imports tables from an Access database (mdb) onto an SQL server using the transferdatabase method. It is a generic tool that works on different SQL databases by resetting the connection of the project and different access databases by a textbox with the name and path.
The thing is, that I get Access databases with password, and they tell me the password, but I can't find a way to put that in the transferdatabase method. There's hundreds of tables to import so typing in the password every time isn't an option (still I get an error when I do that: "You entered an expression that has an invalid reference to the property CurrentRecord."
I tried using the copyobject,, but then I get stuck with the fact that it asks for a destination database and not the source database. I tried tricking it with an application object opening a currentdatabase and run the docmd.transferdatabase from there, but then I get an error saying that the project is locked by another user (which is me, because I'm the only one using it)
Can somebody help me with this?
The thing is, that I get Access databases with password, and they tell me the password, but I can't find a way to put that in the transferdatabase method. There's hundreds of tables to import so typing in the password every time isn't an option (still I get an error when I do that: "You entered an expression that has an invalid reference to the property CurrentRecord."
I tried using the copyobject,, but then I get stuck with the fact that it asks for a destination database and not the source database. I tried tricking it with an application object opening a currentdatabase and run the docmd.transferdatabase from there, but then I get an error saying that the project is locked by another user (which is me, because I'm the only one using it)
Can somebody help me with this?