Question : Application.LoadFromText automation

I have the following VBA in an Access Database.
Application.LoadFromText acModule, "MyModName", "c:PathToMyModFile"
This code works fine from within the current DB, but I need to automate this task from one database to another.
In other words, i need it to be something along the line of:
MyDefinedDB.LoadFromText acModule, "MyModName", "c:PathToMyModFile"
Please help as I have searched for this and automation, but nothing seems to work. I'm running Access 03.
Thanks in advance,
a260148

Answer : Application.LoadFromText automation

if you only need to add a module to another app, you could LoadFromText into the databse your code is running in, then do a TransferDatabase into the app you want to add the module to.
Random Solutions  
 
programming4us programming4us