TransferDatabase

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
 
A

Alex Dybenko

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top