Importing modules with VB code...

J

JSand42737

"Mario" said:
Is this possible?

Mario

You can use DoCmd.TransferDatabase:

DoCmd.TransferDatabase acImport, "Microsoft Access", strDBName, acModule,
strModuleName, strModuleName
 
M

Mario

Transferdatabase is from another mdb/adp, I need to import
modules programmatically from a .txt or .bas file.
 
J

JSand42737

"Mario" said:
Transferdatabase is from another mdb/adp, I need to import
modules programmatically from a .txt or .bas file.

Mario

In that case, you can use Application.LoadFromText:

Application.LoadFromText acModule,"mdlName","C:\Test.txt"
 

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