I am using the following VB Code to import a file into Access. The problem is that if we run this on Monday, the file we are trying to import in from Friday (and therefore is not Date - 1). Do you know how I would go about importing Friday's file?
DoCmd.TransferText acImportDelim, "Test Import Specification", "test file", "C:\Test_" & Format(Date - 1, "yyyymmdd") & ".txt", True, ""
Thanks.
DoCmd.TransferText acImportDelim, "Test Import Specification", "test file", "C:\Test_" & Format(Date - 1, "yyyymmdd") & ".txt", True, ""
Thanks.