tekniculwiz
New member
- Local time
- Yesterday, 21:52
- Joined
- May 31, 2012
- Messages
- 3
Debug identified code as DoCmd in following:
Private Sub cmdMobileExport_Click()
DoCmd.TransferText acExportDelim, "Mobile_Export", "qryMobile", "R:\FltMaint\Mobile.txt"
End Sub
Prior to executing code the Mobile.txt file existed in path reflected in code line DoCmd which happens to be on a network share mapped to local networked computer and client to same Windows domain. When tried from a local C drive the same results occur, that is the mobile.txt file exists in folder before executing code, but appears to be deleted before code responsible for checking existence of file and writing to the text file.
I cannot figure out how or why the text file is mysteriously deleted at code execution time. There is no other code executed before the sample above.
I would appreciate any suggestions or insights.
Private Sub cmdMobileExport_Click()
DoCmd.TransferText acExportDelim, "Mobile_Export", "qryMobile", "R:\FltMaint\Mobile.txt"
End Sub
Prior to executing code the Mobile.txt file existed in path reflected in code line DoCmd which happens to be on a network share mapped to local networked computer and client to same Windows domain. When tried from a local C drive the same results occur, that is the mobile.txt file exists in folder before executing code, but appears to be deleted before code responsible for checking existence of file and writing to the text file.
I cannot figure out how or why the text file is mysteriously deleted at code execution time. There is no other code executed before the sample above.
I would appreciate any suggestions or insights.