mmatsumura
Technical User
Hi all,
Before I begin let me say a) this is the first time I've visited the site and am very impressed and b) the information being posted is excellent. Good job to all who have contributed!
Okay... The problem I'm facing is that the execution of an event seems to not yeild itself by calling the DoEvents function. Within a module I just prepared, I wish to run a Shell function allowing the program to initiate and execute a batch process. The batch file I've referred to calls a DOS application to run which ultimately generates a text file for import. Below is a section of the module mentioned:
rsPhase1.Close
rsPhase2.Close
Shell "C:\Mike\Test.bat", vbHide
DoEvents
DoCmd.TransferText acImportFixed, "Mike Import Specification", "MikeTest", "C:\Mike\Data.txt", False
I have been beating myself over this one but just cannot come up with a solution.
Any comments/suggestions would be appriciated!
Before I begin let me say a) this is the first time I've visited the site and am very impressed and b) the information being posted is excellent. Good job to all who have contributed!
Okay... The problem I'm facing is that the execution of an event seems to not yeild itself by calling the DoEvents function. Within a module I just prepared, I wish to run a Shell function allowing the program to initiate and execute a batch process. The batch file I've referred to calls a DOS application to run which ultimately generates a text file for import. Below is a section of the module mentioned:
rsPhase1.Close
rsPhase2.Close
Shell "C:\Mike\Test.bat", vbHide
DoEvents
DoCmd.TransferText acImportFixed, "Mike Import Specification", "MikeTest", "C:\Mike\Data.txt", False
I have been beating myself over this one but just cannot come up with a solution.
Any comments/suggestions would be appriciated!