TransferDatabase

  • Thread starter Thread starter Katrina
  • Start date Start date
K

Katrina

Can someone please send me a sample line of how to export
a module through code? I have looked in the help file,
but when I follow the help file exactly, I still get
errors in using the function.

Is there something different about exporting a module as
opposed to a form?

Katrina
 
to copy to other mdb:
docmd.CopyObject "C:\me.mdb","MyModule",acModule,"MyModule"

to save to text:
application.SaveAsText acModule,"MyModule","c:\MyModule.bas"
 
Back
Top