G
Guest
I want to link a table from a password protected database (DbB) to my current database (DbA). I am trying to use the DoCmd.TransferDatabase method, but I haven't got any success
The sintaxis I am using is
DoCmd.TransferDatabase acLink "Microsoft Access", "c:\DbsB.mdb", acTable, "TT_ExportMovs", "TT_ExportMovsA", False, Tru
or
DoCmd.TransferDatabase TRANSFERTYPE:=acLink, DATABASETYPE:= "Microsoft Access", DATABASENAME:= "C:\DbsB.mdb", OBJECTYPE:=acTable, Source:= "TT_ExportMovs", Destination:="TT_ExportMovsA", STRUCTUREONLY:=False, STORELOGIN:=Tru
However, where should I indicate that the password to open DbsB, is "PACO".
If I use this sintaxis I get prompted for the password, and I want it to be kept in the linking code
Any help would be greatly appreciated
Francisco
The sintaxis I am using is
DoCmd.TransferDatabase acLink "Microsoft Access", "c:\DbsB.mdb", acTable, "TT_ExportMovs", "TT_ExportMovsA", False, Tru
or
DoCmd.TransferDatabase TRANSFERTYPE:=acLink, DATABASETYPE:= "Microsoft Access", DATABASENAME:= "C:\DbsB.mdb", OBJECTYPE:=acTable, Source:= "TT_ExportMovs", Destination:="TT_ExportMovsA", STRUCTUREONLY:=False, STORELOGIN:=Tru
However, where should I indicate that the password to open DbsB, is "PACO".
If I use this sintaxis I get prompted for the password, and I want it to be kept in the linking code
Any help would be greatly appreciated
Francisco