| |
Public Function ExportObjectExterne(strDbSrc$, strDbDest$, intType%, strObject$) '** intType : 0 pour table, 1 pour requête, 2 pour formulaire '** 3 pour état, 4 pour macro et 5 pour module Dim acApp As Object
Set acApp = CreateObject("Access.Application") With acApp .OpenCurrentDatabase strDbSrc .DoCmd.TransferDatabase acExport, , strDbDest, _ intType, strObject, strObject .CloseCurrentDatabase End With
acApp.Quit: Set acApp = Nothing
End Function | | |