J
J-P
I'm using VB.NET to copy Access data base (.MDB) to Access project
(.ADP)
Actualy to copy FORMS I copy from a source MDB to a destination ADP.
But the result is the module (VBA code) attach to the form dont
follow. In Access the export wizard in the MDB give the same result.
But the Import wizard in the ADP import the form right.
Is there a way to import in VB.NET or a way to go around this?
Thanks
my actual VB.NET code:
dim SourceAccApp New Access.ApplicationClass()
SourceAccApp.OpenCurrentDatabase("C:\source.mdb", False)
SourceAccApp.DoCmd.OpenForm(objectName, AcView.acViewDesign)
SourceAccApp.DoCmd.CopyObject("C:\destination.adp", FormName,
AcObjectType.acForm, FormName)
(.ADP)
Actualy to copy FORMS I copy from a source MDB to a destination ADP.
But the result is the module (VBA code) attach to the form dont
follow. In Access the export wizard in the MDB give the same result.
But the Import wizard in the ADP import the form right.
Is there a way to import in VB.NET or a way to go around this?
Thanks
my actual VB.NET code:
dim SourceAccApp New Access.ApplicationClass()
SourceAccApp.OpenCurrentDatabase("C:\source.mdb", False)
SourceAccApp.DoCmd.OpenForm(objectName, AcView.acViewDesign)
SourceAccApp.DoCmd.CopyObject("C:\destination.adp", FormName,
AcObjectType.acForm, FormName)