Well I created an MS-DOS batch file with the command line appropriate for MS Access and the application, and ran it in both "Test" and "Normal" modes with the "Run Now" button. Also ran it from DOS command line. No difference. It performed exactly the same as it had when I used the browse buttons to point to the commandline and the Start-In text boxes. It is frustrating as I can see that it properly processes the data but will write and email ONLY the very last file created by the program. I embedded a step logging process in the application and can see that it performs all code as intended, even to the point where it writes the file and then emails it. No errors are raised at these points. MS Access is convinced that it had a good day. I have tested this appl using the Win2K task scheduler, Guess what. It acts nearly identically there also. As the MS Access appl uses the Export command to export a single previously formatted 80 byte wide field out to a text file, then emails that text file, I am thinking that perhaps the little informational message box that MS Access displays when exporting, may be the culprit. I am going to try suppressing the display of that box. Will let you know if that works or not. : I am not aware of the mentioned "MS DOS and NT4 limitations" : I just know that when you open the MDB file manually the macro runs fine. But : when the process is run in the background it somehow behaves differently. : That's why I suggest using a batch file as a container and see if it makes : any difference. I am not sure if using VB or other container types make : any difference. I just feel that the real issue is running the process in : the background/foreground or using different user accounts or environment : settings. Please note that when the MDB process is started from 24x7 it : inherits all attributes of the parent process. When it is I run manually : it inherits all attributes associated with the interactive user process. : The best troubleshooting path is to modify the macro and add some logging : functions to the process so that if something goes wrong or simply cannot : be found you could have a trace of it. Of course this can be done only if : you have control over the MDB file and can modify it.
|