respree
Active Member
- Joined
- Apr 14, 2003
- Messages
- 258
I'm not sure if my subject is phrased properly.
Can I have one macro launch another macro in a different .mdb file?
Or is it possible to have one file launch four different macros in four different files, but wait for the previously launched macro to finish processing?
Here's my situation.
I have four Access files, each with a macro which runs a procedure to import information, process the file(s), then export information.
File1 imports a specified file
File2 import is File1 export
File3 import is File2 export
File4 import is File3 export
(Each import is dependent upon the prevoius file's export)
I'm trying to figure out a way to automate this process. The programs are chewing on 100,000 records, so its taking about 5 minutes for each file to process. I'm trying to avoid sitting a the computer for 20 minutes or going back to my desk 4 times to wait for the previous file to complete its processing.
Do I need some kind of VB program or can this be done through the macro itself (whereby the ending command is to launch the macro in the next file).
If VB is required, can you provide the code assuming?
macroname, file1.mdb
macroname, file2,mdb
macroname, file3.mdb
macroname, file4.mdb
I would appreciate any suggestions.
Can I have one macro launch another macro in a different .mdb file?
Or is it possible to have one file launch four different macros in four different files, but wait for the previously launched macro to finish processing?
Here's my situation.
I have four Access files, each with a macro which runs a procedure to import information, process the file(s), then export information.
File1 imports a specified file
File2 import is File1 export
File3 import is File2 export
File4 import is File3 export
(Each import is dependent upon the prevoius file's export)
I'm trying to figure out a way to automate this process. The programs are chewing on 100,000 records, so its taking about 5 minutes for each file to process. I'm trying to avoid sitting a the computer for 20 minutes or going back to my desk 4 times to wait for the previous file to complete its processing.
Do I need some kind of VB program or can this be done through the macro itself (whereby the ending command is to launch the macro in the next file).
If VB is required, can you provide the code assuming?
macroname, file1.mdb
macroname, file2,mdb
macroname, file3.mdb
macroname, file4.mdb
I would appreciate any suggestions.