Importing modules with VB code...

  • Thread starter Thread starter Mario
  • Start date Start date
"Mario" said:
Is this possible?

Mario

You can use DoCmd.TransferDatabase:

DoCmd.TransferDatabase acImport, "Microsoft Access", strDBName, acModule,
strModuleName, strModuleName
 
Transferdatabase is from another mdb/adp, I need to import
modules programmatically from a .txt or .bas file.
 
"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"
 
Back
Top