Ajay Verma
New Member
Hi All
I am importing a database into another blank database below is the code m using
It give me 2046 error(the command or action TransferDatabase isn't available now)
Can anyone please help?
Mod Edit: Code tags added
I am importing a database into another blank database below is the code m using
Code:
Sub makedb()
Dim accessApp As Access.Application
Set accessApp = New Access.Application
accessApp.DBEngine.CreateDatabase "D:\tblImport.accdb", DB_LANG_GENERAL
DoCmd.TransferDatabase acImport, "Microsoft Access", _
"C:\WMDokInt_80_01_32Bit.accdb", acTable, "datLogo", _
"datLogo", False
End Sub
Can anyone please help?
Mod Edit: Code tags added
Last edited by a moderator: