I have several databases that auto import their data from .txt files dropped from the mainframe daily. I would like to code a check of the modified date of the file before I import it so I don't grab the previous days data twice. Does anyone have a way to do this? Here's my import code:
DoCmd.TransferText acImportDelim, "Cd051_Daily Import Specification", "tbl_CD051_Daily", "\\azstor01\bankops$\transfer\mainframe\fdrrpt\In\Cd051_Daily.txt", True
DoCmd.TransferText acImportDelim, "Cd051_Daily Import Specification", "tbl_CD051_Daily", "\\azstor01\bankops$\transfer\mainframe\fdrrpt\In\Cd051_Daily.txt", True