brokeMyLegBiking
asked on
Execute a DoCmd.TransferDatabase in MS Access using VB.NET
From an an Access Macro you can execute a DoCmd.TransferDatabase command, which will copy a table including indexes and everything from one database to another.
How can I call a DoCmd using VB.NET?
Here is the syntax, as found in the Access help:
DoCmd.TransferDatabase acImport, "Microsoft Access", _
"C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _
"Corporate Sales for April"
I tried using an OledbCommand.ExecuteNonQue ry, but that did not work.
thx,
-brokeMyLegBiking
How can I call a DoCmd using VB.NET?
Here is the syntax, as found in the Access help:
DoCmd.TransferDatabase acImport, "Microsoft Access", _
"C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _
"Corporate Sales for April"
I tried using an OledbCommand.ExecuteNonQue
thx,
-brokeMyLegBiking
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It worked, that's great. Thanks.
ASKER